NimaKL commited on
Commit
db06152
·
1 Parent(s): f2dd9af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 "likely" if label_id == 1 else "unlikely"
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,