Spaces:
Sleeping
Sleeping
Update src/brain.py
Browse files- src/brain.py +1 -1
src/brain.py
CHANGED
@@ -7,6 +7,6 @@ def generate_answers(query, data):
|
|
7 |
inputs = tokenizer(query, return_tensors="pt", padding=True, truncation=True)
|
8 |
outputs = model(**inputs)
|
9 |
prediction = torch.argmax(outputs.logits, dim=1)
|
10 |
-
labels =
|
11 |
predicted_label = labels[prediction]
|
12 |
return predicted_label
|
|
|
7 |
inputs = tokenizer(query, return_tensors="pt", padding=True, truncation=True)
|
8 |
outputs = model(**inputs)
|
9 |
prediction = torch.argmax(outputs.logits, dim=1)
|
10 |
+
labels = ['ds','real','Group']
|
11 |
predicted_label = labels[prediction]
|
12 |
return predicted_label
|