Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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]
|