tbitai commited on
Commit
6cc3b53
1 Parent(s): b0bd4fb

Fix model default

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")],