Spaces:
Sleeping
Sleeping
Decrease temperature
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def predict_genus(method: str, dna_sequence: str, latitude: str, longitude: str)
|
|
| 126 |
if method == "fine_tuned_model":
|
| 127 |
bert_inputs = tokenize(dna_sequence)
|
| 128 |
logits = classification_model(bert_inputs, torch.zeros(1, 7))
|
| 129 |
-
temperature = 0.
|
| 130 |
probs = torch.softmax(logits / temperature, dim=1).squeeze()
|
| 131 |
top_k = torch.topk(probs, 10)
|
| 132 |
top_k = pd.Series(
|
|
|
|
| 126 |
if method == "fine_tuned_model":
|
| 127 |
bert_inputs = tokenize(dna_sequence)
|
| 128 |
logits = classification_model(bert_inputs, torch.zeros(1, 7))
|
| 129 |
+
temperature = 0.2
|
| 130 |
probs = torch.softmax(logits / temperature, dim=1).squeeze()
|
| 131 |
top_k = torch.topk(probs, 10)
|
| 132 |
top_k = pd.Series(
|