osanseviero commited on
Commit
85190c9
β€’
1 Parent(s): 1f80b78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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), "test.jpg"
113
 
114
 
115
  def suggest(option):
@@ -152,8 +152,9 @@ with demo:
152
  inp = gr.Textbox(label="Protein sequence", lines=3, value=DEFAULT_SEQ, placeholder="Write your protein sequence here...")
153
  with gr.Column():
154
  btn = gr.Button("πŸ”¬ Predict Structure ").style(full_width=False)
 
155
  mol = gr.HTML(update)
156
- download = gr.File(label="Download file")
157
  btn.click(fn=update, inputs=inp, outputs=[mol, download])
158
 
159
  name.change(fn=suggest, inputs=name, outputs=inp)
 
109
  with open(tmp.name, "w") as f:
110
  f.write(pdb_string)
111
 
112
+ return molecule(tmp.name), tmp.name
113
 
114
 
115
  def suggest(option):
 
152
  inp = gr.Textbox(label="Protein sequence", lines=3, value=DEFAULT_SEQ, placeholder="Write your protein sequence here...")
153
  with gr.Column():
154
  btn = gr.Button("πŸ”¬ Predict Structure ").style(full_width=False)
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, download])
159
 
160
  name.change(fn=suggest, inputs=name, outputs=inp)