Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def predict_wfh(input_text, input_slider):
|
|
| 51 |
return({"Not work from home": no_wfh, "Work from home": wfh}, f"Probability of WFH: {np.round(prob_wfh, 3)}")
|
| 52 |
|
| 53 |
|
| 54 |
-
label = gr.Label(num_top_classes=1,
|
| 55 |
text_output = gr.Textbox(label="Predicted probability")
|
| 56 |
|
| 57 |
app = gr.Interface(fn=predict_wfh,
|
|
|
|
| 51 |
return({"Not work from home": no_wfh, "Work from home": wfh}, f"Probability of WFH: {np.round(prob_wfh, 3)}")
|
| 52 |
|
| 53 |
|
| 54 |
+
label = gr.Label(num_top_classes=1, label="Binary classification")
|
| 55 |
text_output = gr.Textbox(label="Predicted probability")
|
| 56 |
|
| 57 |
app = gr.Interface(fn=predict_wfh,
|