Spaces:
Running
Running
Update requirements and make necessary code changes
Browse files- .ipynb_checkpoints/app-checkpoint.py +2 -2
- app.py +2 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -111,9 +111,9 @@ def predict_protein_sequence(test_one_letter_sequence):
|
|
111 |
|
112 |
normalized_scores = normalize_scores(logits)
|
113 |
|
114 |
-
normalized_scores
|
115 |
|
116 |
-
return
|
117 |
|
118 |
|
119 |
interface = gr.Interface(
|
|
|
111 |
|
112 |
normalized_scores = normalize_scores(logits)
|
113 |
|
114 |
+
result_str = "\n".join([f"{aa}: {score:.2f}" for aa, score in zip(test_one_letter_sequence, normalized_scores[0])])
|
115 |
|
116 |
+
return result_str
|
117 |
|
118 |
|
119 |
interface = gr.Interface(
|
app.py
CHANGED
@@ -111,9 +111,9 @@ def predict_protein_sequence(test_one_letter_sequence):
|
|
111 |
|
112 |
normalized_scores = normalize_scores(logits)
|
113 |
|
114 |
-
normalized_scores
|
115 |
|
116 |
-
return
|
117 |
|
118 |
|
119 |
interface = gr.Interface(
|
|
|
111 |
|
112 |
normalized_scores = normalize_scores(logits)
|
113 |
|
114 |
+
result_str = "\n".join([f"{aa}: {score:.2f}" for aa, score in zip(test_one_letter_sequence, normalized_scores[0])])
|
115 |
|
116 |
+
return result_str
|
117 |
|
118 |
|
119 |
interface = gr.Interface(
|