Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ worksheet_name = "Sheet1"
|
|
| 15 |
def feedback_response(feedback, comments, new_input_query):
|
| 16 |
response = ''
|
| 17 |
if feedback == 'Informative':
|
| 18 |
-
response = 'Informative
|
| 19 |
elif feedback == 'Inaccurate':
|
| 20 |
response = 'Inaccurate'
|
| 21 |
else:
|
|
@@ -39,14 +39,15 @@ feedback_interface = gr.Interface(
|
|
| 39 |
inputs=[
|
| 40 |
gr.Radio(
|
| 41 |
choices=[
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
],
|
| 46 |
label="Feedback"
|
| 47 |
),
|
| 48 |
-
gr.Textbox(label="
|
| 49 |
-
gr.Textbox(label="
|
|
|
|
| 50 |
],
|
| 51 |
outputs="text",
|
| 52 |
title="Beta: Itell Guide Response Bot",
|
|
|
|
| 15 |
def feedback_response(feedback, comments, new_input_query):
|
| 16 |
response = ''
|
| 17 |
if feedback == 'Informative':
|
| 18 |
+
response = 'Informative'
|
| 19 |
elif feedback == 'Inaccurate':
|
| 20 |
response = 'Inaccurate'
|
| 21 |
else:
|
|
|
|
| 39 |
inputs=[
|
| 40 |
gr.Radio(
|
| 41 |
choices=[
|
| 42 |
+
"Informative",
|
| 43 |
+
"Inaccurate",
|
| 44 |
+
"Nonsense"
|
| 45 |
],
|
| 46 |
label="Feedback"
|
| 47 |
),
|
| 48 |
+
gr.Textbox(label="New Input Query"),
|
| 49 |
+
gr.Textbox(label="Additional Comments")
|
| 50 |
+
|
| 51 |
],
|
| 52 |
outputs="text",
|
| 53 |
title="Beta: Itell Guide Response Bot",
|