kwanpon commited on
Commit
3baf600
·
verified ·
1 Parent(s): 9586079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,8 +51,8 @@ def classify(text):
51
  outputs = model(**inputs)
52
  probs = torch.softmax(outputs.logits, dim=1).numpy()[0]
53
  return {
54
- "No": float(probs[0]),
55
- "Yes": float(probs[1]),
56
  }
57
 
58
  # gradio interface
 
51
  outputs = model(**inputs)
52
  probs = torch.softmax(outputs.logits, dim=1).numpy()[0]
53
  return {
54
+ "ไม่เกี่ยวข้อง": float(probs[0]),
55
+ "จ้างงานรถขนส่ง": float(probs[1]),
56
  }
57
 
58
  # gradio interface