ThorbenF commited on
Commit
0c30782
·
1 Parent(s): a8fecfc

Update requirements and make necessary code changes

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +2 -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.shape
115
 
116
- return normalized_scores
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.shape
115
 
116
- return normalized_scores
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(