fschwartzer commited on
Commit
baac8e0
·
verified ·
1 Parent(s): c815f34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = data.columns
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