huhlim commited on
Commit
cf9c11c
·
1 Parent(s): 6bd3cad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -4,11 +4,10 @@ import os
4
 
5
  def runner(in_pdb, model_type):
6
  out_fn = in_pdb.name[:-4] + "-all.pdb"
7
- return out_fn + str(os.path.exists(in_pdb.name))
8
- #print(in_pdb, in_pdb.name, os.path.exists(in_pdb.name))
9
- #cg2all.convert_cg2all(in_pdb.name, out_fn, model_type=model_type)
10
 
11
  demo = gr.Interface(fn=runner,
12
  inputs=["file", gr.Radio(["CalphaBasedModel", "ResidueBasedModel", "Martini"])],
13
- outputs=["text"])
14
  demo.launch()
 
4
 
5
  def runner(in_pdb, model_type):
6
  out_fn = in_pdb.name[:-4] + "-all.pdb"
7
+ cg2all.convert_cg2all(in_pdb.name, out_fn, model_type=model_type)
8
+ return gr.File(out_fn)
 
9
 
10
  demo = gr.Interface(fn=runner,
11
  inputs=["file", gr.Radio(["CalphaBasedModel", "ResidueBasedModel", "Martini"])],
12
+ outputs=["file"])
13
  demo.launch()