Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import cg2all
|
|
|
3 |
|
4 |
def runner(in_pdb, model_type):
|
5 |
out_fn = in_pdb.name[:-4] + "-all.pdb"
|
|
|
6 |
cg2all.convert_cg2all(in_pdb.name, out_fn, model_type=model_type)
|
7 |
|
8 |
demo = gr.Interface(fn=cg2all.convert_cg2all,
|
|
|
1 |
import gradio as gr
|
2 |
import cg2all
|
3 |
+
import os
|
4 |
|
5 |
def runner(in_pdb, model_type):
|
6 |
out_fn = in_pdb.name[:-4] + "-all.pdb"
|
7 |
+
print(in_pdb, in_pdb.name, os.path.exists(in_pdb.name))
|
8 |
cg2all.convert_cg2all(in_pdb.name, out_fn, model_type=model_type)
|
9 |
|
10 |
demo = gr.Interface(fn=cg2all.convert_cg2all,
|