Spaces:
Runtime error
Runtime error
simonduerr
commited on
Commit
•
55d0e8a
1
Parent(s):
a0dc483
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ def update(upload_choice, inp, file, public_link):
|
|
113 |
return molecule(pdb_path, public_link)
|
114 |
|
115 |
def toggle_upload_input(choice):
|
116 |
-
if choice
|
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)
|
|
|
113 |
return molecule(pdb_path, 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)
|