tbitai commited on
Commit
b0bd4fb
1 Parent(s): f8dfc8e

Fix default argument in predict function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
 
3
- def predict(model="spam-rate", input_txt):
4
  return 0.46 # Worldwide spam rate in 2023. Source: https://securelist.com/spam-phishing-report-2023/112015/
5
 
6
  demo = gr.Interface(
 
1
  import gradio as gr
2
 
3
+ def predict(model, input_txt):
4
  return 0.46 # Worldwide spam rate in 2023. Source: https://securelist.com/spam-phishing-report-2023/112015/
5
 
6
  demo = gr.Interface(