NinaMwangi commited on
Commit
e39318b
·
verified ·
1 Parent(s): 7edb0ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -71,12 +71,16 @@ with gr.Blocks(theme=gr.themes.Base()) as interface:
71
 
72
  # Bind functionality
73
  submit_btn.click(
74
- generate_answer,
75
- inputs=[question_box, state],
76
- outputs=[question_box, chatbot],
77
- )
78
-
79
- clear_btn.click(lambda: ([], []), inputs=[], outputs=[chatbot, state])
 
 
 
 
80
 
81
 
82
  # === Launch the app ===
 
71
 
72
  # Bind functionality
73
  submit_btn.click(
74
+ generate_answer,
75
+ inputs=[question_box, state],
76
+ outputs=[question_box, chatbot],
77
+ )
78
+
79
+ clear_btn.click(
80
+ lambda: ("", [], []),
81
+ inputs=[],
82
+ outputs=[question_box, chatbot, state],
83
+ )
84
 
85
 
86
  # === Launch the app ===