Spaces:
Runtime error
Runtime error
simonduerr
commited on
Commit
•
a1af6af
1
Parent(s):
2b91070
Update app.py
Browse files
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,
|
118 |
elif choice == "local file":
|
119 |
-
return gr.update(visible=False
|
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 |
|