DmitriySv commited on
Commit
b009f2e
·
verified ·
1 Parent(s): bff6bb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def predict(text):
75
  pred_task1 = torch.argmax(logits_task1, dim=1).item()
76
  pred_task2 = torch.argmax(logits_task2, dim=1).item()
77
 
78
- return "Тема": get_key_by_value(label_mapping_type, pred_task1)
79
 
80
  iface = gr.Interface(
81
  fn=predict,
 
75
  pred_task1 = torch.argmax(logits_task1, dim=1).item()
76
  pred_task2 = torch.argmax(logits_task2, dim=1).item()
77
 
78
+ return {"Тема": get_key_by_value(label_mapping_type, pred_task1)}
79
 
80
  iface = gr.Interface(
81
  fn=predict,