DeepLearning101 commited on
Commit
7bd92a9
·
verified ·
1 Parent(s): b3d27d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -201,7 +201,7 @@ with gr.Blocks() as iface:
201
  "ip", "fileHash", "dl101", "other", "search"
202
  ])
203
 
204
- gr.Examples(examples=examples, inputs=user_input)
205
 
206
  with gr.Row():
207
  # like_button = gr.Button(" 👍 覺得答案很棒,請按我;或者直接繼續問新問題亦可")
@@ -221,12 +221,6 @@ with gr.Blocks() as iface:
221
 
222
  submit_button.click(fn=chat, inputs=[user_input, chatbot], outputs=[chatbot, chatbot])
223
 
224
- # like_button.click(
225
- # fn=lambda response, improvement: handle_feedback(response, "like", improvement),
226
- # inputs=[chatbot, improvement_input],
227
- # outputs=feedback_output
228
- # )
229
-
230
  dislike_button.click(
231
  fn=lambda response, improvement: handle_feedback(response, "dislike", improvement),
232
  inputs=[chatbot, improvement_input],
 
201
  "ip", "fileHash", "dl101", "other", "search"
202
  ])
203
 
204
+ gr.Examples(examples=examples, inputs=[user_input, category])
205
 
206
  with gr.Row():
207
  # like_button = gr.Button(" 👍 覺得答案很棒,請按我;或者直接繼續問新問題亦可")
 
221
 
222
  submit_button.click(fn=chat, inputs=[user_input, chatbot], outputs=[chatbot, chatbot])
223
 
 
 
 
 
 
 
224
  dislike_button.click(
225
  fn=lambda response, improvement: handle_feedback(response, "dislike", improvement),
226
  inputs=[chatbot, improvement_input],