Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def predict(text):
|
|
| 10 |
outputs = model(**inputs)
|
| 11 |
logits = outputs.logits
|
| 12 |
label_id = logits.argmax(axis=1).item()
|
| 13 |
-
return "
|
| 14 |
|
| 15 |
io = gr.Interface(
|
| 16 |
fn=predict,
|
|
|
|
| 10 |
outputs = model(**inputs)
|
| 11 |
logits = outputs.logits
|
| 12 |
label_id = logits.argmax(axis=1).item()
|
| 13 |
+
return "Danger of fire hazard!" if label_id == 1 else "It is unlikely that a fire will start in this area."
|
| 14 |
|
| 15 |
io = gr.Interface(
|
| 16 |
fn=predict,
|