Spaces:
Running
Running
Commit
·
b58cc31
1
Parent(s):
e0a63f3
test
Browse files
app.py
CHANGED
@@ -120,8 +120,7 @@ def test(ligand, protein):
|
|
120 |
IC50, K = mbp_scoring(ligand.name, protein.name)
|
121 |
return '{:.2f}'.format(IC50), '{:.2f}'.format(K)
|
122 |
except Exception as e:
|
123 |
-
|
124 |
-
return 'Please set input correctly', 'Please set input correctly'
|
125 |
|
126 |
with gr.Blocks() as demo:
|
127 |
ligand = gr.File(label="ligand")
|
|
|
120 |
IC50, K = mbp_scoring(ligand.name, protein.name)
|
121 |
return '{:.2f}'.format(IC50), '{:.2f}'.format(K)
|
122 |
except Exception as e:
|
123 |
+
return e, e
|
|
|
124 |
|
125 |
with gr.Blocks() as demo:
|
126 |
ligand = gr.File(label="ligand")
|