mawairon commited on
Commit
b312d27
1 Parent(s): 3a67180

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -183,7 +183,7 @@ def analyze_dna(username, password, sequence, model_name):
183
  # logits_sum += logits
184
  # logits_avg = logits_sum / num_shifts
185
  # else:
186
- logits_avg = get_logits(sequence)
187
 
188
  probabilities = torch.nn.functional.softmax(logits_avg, dim=-1).squeeze().tolist()
189
  top_5_indices = sorted(range(len(probabilities)), key=lambda i: probabilities[i], reverse=True)[:5]
 
183
  # logits_sum += logits
184
  # logits_avg = logits_sum / num_shifts
185
  # else:
186
+ logits_avg = get_logits(sequence, model_name)
187
 
188
  probabilities = torch.nn.functional.softmax(logits_avg, dim=-1).squeeze().tolist()
189
  top_5_indices = sorted(range(len(probabilities)), key=lambda i: probabilities[i], reverse=True)[:5]