Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def comment_bot(slider_value, comment_text):
|
|
108 |
date_string = date_d.isoformat()
|
109 |
upload_to_airtable_log(date_string, first_element['content'], result_airtable, slider_value, comment_text)
|
110 |
|
111 |
-
return "Нема", "
|
112 |
|
113 |
def upload_to_airtable_log(date, question, answer, rating, comment):
|
114 |
data = {
|
@@ -180,6 +180,7 @@ with gr.Blocks(css=css) as demo:
|
|
180 |
comment = gr.Textbox(lines=2, label = "Коментар")
|
181 |
with gr.Row():
|
182 |
b2 = gr.ClearButton([radio, comment], value="Прокоментувати чат")
|
|
|
183 |
|
184 |
clear.click(clear_f)
|
185 |
submit_button.click(respond, [msg, chatbot], [msg, chatbot, context])
|
|
|
108 |
date_string = date_d.isoformat()
|
109 |
upload_to_airtable_log(date_string, first_element['content'], result_airtable, slider_value, comment_text)
|
110 |
|
111 |
+
return "Нема", "[+]" # Если функция должна что-то возвращать, замените это на нужный вывод
|
112 |
|
113 |
def upload_to_airtable_log(date, question, answer, rating, comment):
|
114 |
data = {
|
|
|
180 |
comment = gr.Textbox(lines=2, label = "Коментар")
|
181 |
with gr.Row():
|
182 |
b2 = gr.ClearButton([radio, comment], value="Прокоментувати чат")
|
183 |
+
clear = gr.ClearButton([msg, chatbot, context, radio, comment], value="Новый чат")
|
184 |
|
185 |
clear.click(clear_f)
|
186 |
submit_button.click(respond, [msg, chatbot], [msg, chatbot, context])
|