Witold Wydmański commited on
Commit
313e261
1 Parent(s): 4c6688c

feat: add API names

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -53,7 +53,6 @@ def suggest(option):
53
 
54
 
55
  def molecule(mol):
56
- print(mol)
57
  x = (
58
  """<!DOCTYPE html>
59
  <html>
@@ -155,7 +154,7 @@ with gr.Blocks() as demo:
155
  out_mol = gr.HTML(label="3D Structure")
156
 
157
  name.change(fn=suggest, inputs=name, outputs=inp)
158
- btn.click(fold_prot_locally, inputs=[inp], outputs=[out])
159
- out.change(fn=molecule, inputs=[out], outputs=[out_mol])
160
 
161
  demo.launch()
 
53
 
54
 
55
  def molecule(mol):
 
56
  x = (
57
  """<!DOCTYPE html>
58
  <html>
 
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()