Spaces:
Running
Running
ThorbenFroehlking
commited on
Commit
·
889b770
1
Parent(s):
ac18eb6
Updated
Browse files- .ipynb_checkpoints/app-checkpoint.py +8 -6
- app.py +8 -6
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -193,12 +193,6 @@ def predict_utils(sequence):
|
|
193 |
|
194 |
return raw_scores,normalized_scores
|
195 |
|
196 |
-
gr.Interface(
|
197 |
-
fn=predict_utils,
|
198 |
-
inputs=gr.Textbox(),
|
199 |
-
outputs=[gr.JSON(), gr.JSON()],
|
200 |
-
live=False
|
201 |
-
).launch(share=False, inline=False, show_api=False, prevent_thread_lock=True)
|
202 |
|
203 |
def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
|
204 |
# Determine if input is a PDB ID or file path
|
@@ -637,4 +631,12 @@ with gr.Blocks(css="""
|
|
637 |
inputs=[pdb_input, segment_input],
|
638 |
outputs=[predictions_output, molecule_output, download_output]
|
639 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
demo.launch(share=True)
|
|
|
193 |
|
194 |
return raw_scores,normalized_scores
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
|
198 |
# Determine if input is a PDB ID or file path
|
|
|
631 |
inputs=[pdb_input, segment_input],
|
632 |
outputs=[predictions_output, molecule_output, download_output]
|
633 |
)
|
634 |
+
|
635 |
+
gr.Interface(
|
636 |
+
fn=predict_utils,
|
637 |
+
inputs=gr.Textbox(),
|
638 |
+
outputs=[gr.JSON(), gr.JSON()],
|
639 |
+
live=False
|
640 |
+
)
|
641 |
+
|
642 |
demo.launch(share=True)
|
app.py
CHANGED
@@ -193,12 +193,6 @@ def predict_utils(sequence):
|
|
193 |
|
194 |
return raw_scores,normalized_scores
|
195 |
|
196 |
-
gr.Interface(
|
197 |
-
fn=predict_utils,
|
198 |
-
inputs=gr.Textbox(),
|
199 |
-
outputs=[gr.JSON(), gr.JSON()],
|
200 |
-
live=False
|
201 |
-
).launch(share=False, inline=False, show_api=False, prevent_thread_lock=True)
|
202 |
|
203 |
def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
|
204 |
# Determine if input is a PDB ID or file path
|
@@ -637,4 +631,12 @@ with gr.Blocks(css="""
|
|
637 |
inputs=[pdb_input, segment_input],
|
638 |
outputs=[predictions_output, molecule_output, download_output]
|
639 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
demo.launch(share=True)
|
|
|
193 |
|
194 |
return raw_scores,normalized_scores
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
|
198 |
# Determine if input is a PDB ID or file path
|
|
|
631 |
inputs=[pdb_input, segment_input],
|
632 |
outputs=[predictions_output, molecule_output, download_output]
|
633 |
)
|
634 |
+
|
635 |
+
gr.Interface(
|
636 |
+
fn=predict_utils,
|
637 |
+
inputs=gr.Textbox(),
|
638 |
+
outputs=[gr.JSON(), gr.JSON()],
|
639 |
+
live=False
|
640 |
+
)
|
641 |
+
|
642 |
demo.launch(share=True)
|