LaoCzi commited on
Commit
9075884
·
verified ·
1 Parent(s): 4dadabe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- b2.click(comment_bot, inputs=inp_2, outputs=comment)
 
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