Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|