Spaces:
Running
Running
Fix model default
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ def predict(model, input_txt):
|
|
6 |
demo = gr.Interface(
|
7 |
fn=predict,
|
8 |
inputs=[
|
9 |
-
gr.Dropdown(choices=["spam-rate"], label="Model"),
|
10 |
gr.TextArea(label="Email"),
|
11 |
],
|
12 |
outputs=[gr.Number(label="Spam probability")],
|
|
|
6 |
demo = gr.Interface(
|
7 |
fn=predict,
|
8 |
inputs=[
|
9 |
+
gr.Dropdown(choices=["spam-rate"], value="spam-rate", label="Model"),
|
10 |
gr.TextArea(label="Email"),
|
11 |
],
|
12 |
outputs=[gr.Number(label="Spam probability")],
|