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 = {
|
|
@@ -186,7 +186,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 186 |
msg.submit(respond, [msg, chatbot], [msg, chatbot, context])
|
| 187 |
|
| 188 |
inp_2 = [radio, comment]
|
| 189 |
-
|
|
|
|
| 190 |
#b2.click(clear_f)
|
| 191 |
|
| 192 |
|
|
|
|
| 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 = {
|
|
|
|
| 186 |
msg.submit(respond, [msg, chatbot], [msg, chatbot, context])
|
| 187 |
|
| 188 |
inp_2 = [radio, comment]
|
| 189 |
+
out_2 = [radio, comment]
|
| 190 |
+
b2.click(comment_bot, inputs=inp_2, outputs=out_2)
|
| 191 |
#b2.click(clear_f)
|
| 192 |
|
| 193 |
|