Spaces:
Sleeping
Sleeping
Better explanation, removed FLAG
Browse files
app.py
CHANGED
@@ -29,17 +29,25 @@ def write_letter(airline, travel_date, tone, issues, compensation):
|
|
29 |
|
30 |
demo = gr.Interface(
|
31 |
fn=write_letter,
|
32 |
-
inputs=[gr.Radio(("Delta", "American")),
|
33 |
gr.Textbox("May 2"),
|
34 |
-
gr.Radio(("polite", "polite but firm", "annoyed", "livid")
|
|
|
35 |
gr.Dropdown(("lost luggage", "delayed flight", "cancelled flight"),
|
36 |
-
multiselect=True),
|
37 |
-
gr.Radio(("cash", "reward miles", "free flight")) ],
|
|
|
38 |
outputs=["text"],
|
39 |
live=False,
|
40 |
title="Complaint Letter Generator",
|
41 |
-
description="""
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
)
|
44 |
|
45 |
demo.launch(share=True)
|
|
|
29 |
|
30 |
demo = gr.Interface(
|
31 |
fn=write_letter,
|
32 |
+
inputs=[gr.Radio(("Delta", "American"), value="Delta"),
|
33 |
gr.Textbox("May 2"),
|
34 |
+
gr.Radio(("polite", "polite but firm", "annoyed", "livid","litigious"),
|
35 |
+
value='polite but firm'),
|
36 |
gr.Dropdown(("lost luggage", "delayed flight", "cancelled flight"),
|
37 |
+
multiselect=True, value="lost luggage"),
|
38 |
+
gr.Radio(("cash", "reward miles", "free flight"), value='cash') ],
|
39 |
+
allow_flagging='never',
|
40 |
outputs=["text"],
|
41 |
live=False,
|
42 |
title="Complaint Letter Generator",
|
43 |
+
description="""You just returned from the trip from HELL.\n
|
44 |
+
Delta lost your bag or American cancelled your flight or something like that.\n
|
45 |
+
While it is all still fresh in your mind let AI help you
|
46 |
+
craft a letter to customer support to get some compensation.\n
|
47 |
+
Fill just some of the details of your recent bad airline experience.
|
48 |
+
Start on the polite side for tone, but don't be afraid to turn it up if you don't get their attention.\n
|
49 |
+
Then click 'Submit' below to generate the letter""",
|
50 |
+
css="footer{display:none !important}"
|
51 |
)
|
52 |
|
53 |
demo.launch(share=True)
|