Pavankalyan commited on
Commit
0cecb50
1 Parent(s): e5d627d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def predict(text):
26
  with torch.no_grad():
27
  outputs = model(**inputs)
28
  predicted_labels = postprocess(outputs)
29
- ans = intents_dict[predicted_labels[0]]
30
  return ans
31
 
32
  from transformers import pipeline
 
26
  with torch.no_grad():
27
  outputs = model(**inputs)
28
  predicted_labels = postprocess(outputs)
29
+ ans = intents_dict[str(predicted_labels[0])]
30
  return ans
31
 
32
  from transformers import pipeline