Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def predict(your_text):
|
|
| 42 |
|
| 43 |
# print predicted class
|
| 44 |
i = np.argmax(y_pred_logits)
|
| 45 |
-
return f"Predicted class: {labels[i]} with proba {y_probs[i]:.4f}"
|
| 46 |
|
| 47 |
iface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
| 48 |
iface.launch()
|
|
|
|
| 42 |
|
| 43 |
# print predicted class
|
| 44 |
i = np.argmax(y_pred_logits)
|
| 45 |
+
return f"Predicted class: {labels[i]} with proba {y_probs[i]:.4f}\n{labels}{y_probs}"
|
| 46 |
|
| 47 |
iface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
| 48 |
iface.launch()
|