simonduerr commited on
Commit
a1af6af
1 Parent(s): 2b91070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,9 +114,9 @@ def update(upload_choice, inp, file, public_link):
114
 
115
  def toggle_upload_input(choice):
116
  if choice != "local file":
117
- return gr.update(visible=True, value=None, placeholder=choice), gr.update(visible=False, value=None)
118
  elif choice == "local file":
119
- return gr.update(visible=False, value=None), gr.update(visible=True, value=None)
120
 
121
 
122
 
 
114
 
115
  def toggle_upload_input(choice):
116
  if choice != "local file":
117
+ return gr.update(visible=True, placeholder=choice), gr.update(visible=False, value=None)
118
  elif choice == "local file":
119
+ return gr.update(visible=False), gr.update(visible=True, value=None)
120
 
121
 
122