Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
"
|
55 |
-
"
|
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
|