antoineandrieu commited on
Commit
9940960
·
1 Parent(s): 6852c83

Remove clear button

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -134,8 +134,7 @@ h1 {
134
  autofocus=True,
135
  max_lines=3,
136
  )
137
- submit_btn = gr.Button("Envoyer", scale=1, size="sm")
138
- clear_btn = gr.Button("Effacer", scale=1, size="sm")
139
 
140
  with gr.Row():
141
  gr.Examples(
@@ -219,12 +218,5 @@ h1 {
219
  [thank_you_message, feedback_comment, feedback_input_row, thumbs_up, thumbs_down]
220
  )
221
 
222
- clear_btn.click(
223
- clear_conversation,
224
- None,
225
- [chatbot, thread_state, feedback_card, thank_you_message],
226
- api_name=False
227
- )
228
-
229
  if __name__ == "__main__":
230
  demo.launch(share=True)
 
134
  autofocus=True,
135
  max_lines=3,
136
  )
137
+ submit_btn = gr.Button("Envoyer", scale=1)
 
138
 
139
  with gr.Row():
140
  gr.Examples(
 
218
  [thank_you_message, feedback_comment, feedback_input_row, thumbs_up, thumbs_down]
219
  )
220
 
 
 
 
 
 
 
 
221
  if __name__ == "__main__":
222
  demo.launch(share=True)