Spaces:
Paused
Paused
Commit
·
3524c01
1
Parent(s):
85190c9
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def update(sequence=DEFAULT_SEQ):
|
|
109 |
with open(tmp.name, "w") as f:
|
110 |
f.write(pdb_string)
|
111 |
|
112 |
-
return molecule(tmp.name)
|
113 |
|
114 |
|
115 |
def suggest(option):
|
@@ -155,7 +155,7 @@ with demo:
|
|
155 |
download = gr.File(label="Download file")
|
156 |
mol = gr.HTML(update)
|
157 |
#download = gr.File(label="Download file")
|
158 |
-
btn.click(fn=update, inputs=inp, outputs=
|
159 |
|
160 |
name.change(fn=suggest, inputs=name, outputs=inp)
|
161 |
name.change(fn=lambda :"", inputs=None, outputs=mol)
|
|
|
109 |
with open(tmp.name, "w") as f:
|
110 |
f.write(pdb_string)
|
111 |
|
112 |
+
return molecule(tmp.name)
|
113 |
|
114 |
|
115 |
def suggest(option):
|
|
|
155 |
download = gr.File(label="Download file")
|
156 |
mol = gr.HTML(update)
|
157 |
#download = gr.File(label="Download file")
|
158 |
+
btn.click(fn=update, inputs=inp, outputs=mol)
|
159 |
|
160 |
name.change(fn=suggest, inputs=name, outputs=inp)
|
161 |
name.change(fn=lambda :"", inputs=None, outputs=mol)
|