Nattapong Tapachoom commited on
Commit
66d994e
·
1 Parent(s): c7cb155

Remove example click functionality from Gradio block

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -209,6 +209,5 @@ with gr.Blocks(
209
  analyze_btn.click(analyze_wrapper, inputs=[text_input, model_dropdown], outputs=output_box)
210
  text_input.submit(analyze_wrapper, inputs=[text_input, model_dropdown], outputs=output_box)
211
  model_dropdown.change(analyze_wrapper, inputs=[text_input, model_dropdown], outputs=output_box)
212
- # ตัวอย่าง: คลิกแล้วใส่ข้อความในกล่อง
213
- examples.dataset.click(lambda x: x[0] if isinstance(x, list) and x else "", outputs=text_input)
214
 
 
209
  analyze_btn.click(analyze_wrapper, inputs=[text_input, model_dropdown], outputs=output_box)
210
  text_input.submit(analyze_wrapper, inputs=[text_input, model_dropdown], outputs=output_box)
211
  model_dropdown.change(analyze_wrapper, inputs=[text_input, model_dropdown], outputs=output_box)
212
+
 
213