Spaces:
Running
Running
Commit
·
ed63760
1
Parent(s):
b973dee
test
Browse files
app.py
CHANGED
@@ -114,14 +114,14 @@ def mbp_scoring(ligand_path, protein_path):
|
|
114 |
|
115 |
|
116 |
def test(ligand, protein):
|
117 |
-
try:
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
except Exception as e:
|
124 |
-
|
125 |
|
126 |
with gr.Blocks() as demo:
|
127 |
ligand = gr.File(label="ligand")
|
|
|
114 |
|
115 |
|
116 |
def test(ligand, protein):
|
117 |
+
# try:
|
118 |
+
IC50, K = mbp_scoring(ligand.name, protein.name)
|
119 |
+
print(f'ligand file name: {os.path.basename(ligand)},'
|
120 |
+
f' protein file name: {os.path.basename(protein)},'
|
121 |
+
f' IC50: {IC50}, K: {K}')
|
122 |
+
return '{:.2f}'.format(IC50), '{:.2f}'.format(K)
|
123 |
+
# except Exception as e:
|
124 |
+
# return e, e
|
125 |
|
126 |
with gr.Blocks() as demo:
|
127 |
ligand = gr.File(label="ligand")
|