ytyeung commited on
Commit
0fbfc96
1 Parent(s): 4efc6c9

Simplifying text clear logic

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -184,8 +184,8 @@ def change_language(radio,text_input,text_output,markdown,
184
 
185
 
186
  def clear_text():
187
- text_input_update=gr.Textbox(value=None)
188
- text_output_update=gr.Textbox(value=None)
189
 
190
  return [text_input_update,text_output_update]
191
 
 
184
 
185
 
186
  def clear_text():
187
+ text_input_update=""
188
+ text_output_update=""
189
 
190
  return [text_input_update,text_output_update]
191