Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def feedback_response(feedback, comments, new_input_query):
|
|
| 26 |
worksheet = sh.worksheet(worksheet_name)
|
| 27 |
|
| 28 |
# Create a DataFrame from the response and additional comments
|
| 29 |
-
df = pd.DataFrame({'
|
| 30 |
|
| 31 |
# Append the data to the worksheet
|
| 32 |
worksheet.append_rows(df.values.tolist())
|
|
@@ -45,10 +45,9 @@ feedback_interface = gr.Interface(
|
|
| 45 |
],
|
| 46 |
label="Feedback"
|
| 47 |
),
|
| 48 |
-
gr.Textbox(label="Additional Comments")
|
| 49 |
-
|
| 50 |
],
|
| 51 |
-
gr.Textbox(label="New Input Query"),
|
| 52 |
outputs="text"
|
| 53 |
)
|
| 54 |
|
|
|
|
| 26 |
worksheet = sh.worksheet(worksheet_name)
|
| 27 |
|
| 28 |
# Create a DataFrame from the response and additional comments
|
| 29 |
+
df = pd.DataFrame({'Response': [response], 'Additional Comments': [comments], 'New Input Query': [new_input_query]})
|
| 30 |
|
| 31 |
# Append the data to the worksheet
|
| 32 |
worksheet.append_rows(df.values.tolist())
|
|
|
|
| 45 |
],
|
| 46 |
label="Feedback"
|
| 47 |
),
|
| 48 |
+
gr.Textbox(label="Additional Comments"),
|
| 49 |
+
gr.Textbox(label="New Input Query")
|
| 50 |
],
|
|
|
|
| 51 |
outputs="text"
|
| 52 |
)
|
| 53 |
|