Spaces:
Sleeping
Sleeping
Witold Wydmański
commited on
Commit
•
0fba50f
1
Parent(s):
313e261
fix: api names
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ client = Client("https://wwydmanski-esmfold.hf.space/")
|
|
111 |
def fold_huggingface(sequence, fname=None):
|
112 |
result = client.predict(
|
113 |
sequence, # str in 'sequence' Textbox component
|
114 |
-
api_name="/
|
115 |
|
116 |
if fname is None:
|
117 |
with tempfile.NamedTemporaryFile("w", delete=False, suffix=".pdb", prefix="esmfold_") as fp:
|
@@ -154,7 +154,7 @@ with gr.Blocks() as demo:
|
|
154 |
out_mol = gr.HTML(label="3D Structure")
|
155 |
|
156 |
name.change(fn=suggest, inputs=name, outputs=inp)
|
157 |
-
btn.click(fold_prot_locally, inputs=[inp], outputs=[out], api_name="
|
158 |
-
out.change(fn=molecule, inputs=[out], outputs=[out_mol], api_name="
|
159 |
|
160 |
demo.launch()
|
|
|
111 |
def fold_huggingface(sequence, fname=None):
|
112 |
result = client.predict(
|
113 |
sequence, # str in 'sequence' Textbox component
|
114 |
+
api_name="/pdb")
|
115 |
|
116 |
if fname is None:
|
117 |
with tempfile.NamedTemporaryFile("w", delete=False, suffix=".pdb", prefix="esmfold_") as fp:
|
|
|
154 |
out_mol = gr.HTML(label="3D Structure")
|
155 |
|
156 |
name.change(fn=suggest, inputs=name, outputs=inp)
|
157 |
+
btn.click(fold_prot_locally, inputs=[inp], outputs=[out], api_name="pdb")
|
158 |
+
out.change(fn=molecule, inputs=[out], outputs=[out_mol], api_name="3d_fold")
|
159 |
|
160 |
demo.launch()
|