Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def get_gpt_response(query):
|
|
35 |
inputs = tokenizer(query, return_tensors="pt", padding=True, truncation=True)
|
36 |
outputs = model(**inputs)
|
37 |
prediction = torch.argmax(outputs.logits, dim=1)
|
38 |
-
labels =
|
39 |
predicted_label = labels[prediction]
|
40 |
return predicted_label
|
41 |
|
|
|
35 |
inputs = tokenizer(query, return_tensors="pt", padding=True, truncation=True)
|
36 |
outputs = model(**inputs)
|
37 |
prediction = torch.argmax(outputs.logits, dim=1)
|
38 |
+
labels = df.columns
|
39 |
predicted_label = labels[prediction]
|
40 |
return predicted_label
|
41 |
|