Spaces:
Runtime error
Runtime error
Commit
•
9577223
1
Parent(s):
71cdfa7
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def predict_wfh(input_text, input_slider):
|
|
54 |
label = gr.outputs.Label(num_top_classes=1, type="confidences", label="Binary classification")
|
55 |
text_output = gr.outputs.Textbox(label="Predicted probability")
|
56 |
|
57 |
-
app = gr.Interface(fn=
|
58 |
inputs=[gr.inputs.Textbox(lines=10, label="Input text"), gr.inputs.Slider(0, 1, 0.001, label="Classification threshold", default=0.5)],
|
59 |
outputs=[label, text_output],
|
60 |
theme="huggingface",
|
|
|
54 |
label = gr.outputs.Label(num_top_classes=1, type="confidences", label="Binary classification")
|
55 |
text_output = gr.outputs.Textbox(label="Predicted probability")
|
56 |
|
57 |
+
app = gr.Interface(fn=predict_wfh,
|
58 |
inputs=[gr.inputs.Textbox(lines=10, label="Input text"), gr.inputs.Slider(0, 1, 0.001, label="Classification threshold", default=0.5)],
|
59 |
outputs=[label, text_output],
|
60 |
theme="huggingface",
|