Spaces:
Sleeping
Sleeping
Update requirements and make necessary code changes
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -2
- app.py +1 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -116,11 +116,10 @@ def predict_protein_sequence(test_one_letter_sequence):
|
|
| 116 |
return normalized_scores
|
| 117 |
|
| 118 |
|
| 119 |
-
# Create Gradio interface
|
| 120 |
interface = gr.Interface(
|
| 121 |
fn=predict_protein_sequence,
|
| 122 |
inputs=gr.Textbox(lines=2, placeholder="Enter protein sequence here..."),
|
| 123 |
-
outputs=
|
| 124 |
title="Protein sequence - Binding site prediction",
|
| 125 |
description="Enter a protein sequence to predict its possible binding sites.",
|
| 126 |
)
|
|
|
|
| 116 |
return normalized_scores
|
| 117 |
|
| 118 |
|
|
|
|
| 119 |
interface = gr.Interface(
|
| 120 |
fn=predict_protein_sequence,
|
| 121 |
inputs=gr.Textbox(lines=2, placeholder="Enter protein sequence here..."),
|
| 122 |
+
outputs=gr.JSON(), # Use gr.JSON() for list or array-like outputs
|
| 123 |
title="Protein sequence - Binding site prediction",
|
| 124 |
description="Enter a protein sequence to predict its possible binding sites.",
|
| 125 |
)
|
app.py
CHANGED
|
@@ -116,11 +116,10 @@ def predict_protein_sequence(test_one_letter_sequence):
|
|
| 116 |
return normalized_scores
|
| 117 |
|
| 118 |
|
| 119 |
-
# Create Gradio interface
|
| 120 |
interface = gr.Interface(
|
| 121 |
fn=predict_protein_sequence,
|
| 122 |
inputs=gr.Textbox(lines=2, placeholder="Enter protein sequence here..."),
|
| 123 |
-
outputs=
|
| 124 |
title="Protein sequence - Binding site prediction",
|
| 125 |
description="Enter a protein sequence to predict its possible binding sites.",
|
| 126 |
)
|
|
|
|
| 116 |
return normalized_scores
|
| 117 |
|
| 118 |
|
|
|
|
| 119 |
interface = gr.Interface(
|
| 120 |
fn=predict_protein_sequence,
|
| 121 |
inputs=gr.Textbox(lines=2, placeholder="Enter protein sequence here..."),
|
| 122 |
+
outputs=gr.JSON(), # Use gr.JSON() for list or array-like outputs
|
| 123 |
title="Protein sequence - Binding site prediction",
|
| 124 |
description="Enter a protein sequence to predict its possible binding sites.",
|
| 125 |
)
|