bayes-or-spam / app.py
tbitai's picture
Fix constant prediction
4cd7e23 verified
raw
history blame
316 Bytes
import gradio as gr
def predict(input_txt):
return 0.46 # Worldwide spam rate in 2023. Source: https://securelist.com/spam-phishing-report-2023/112015/
demo = gr.Interface(
fn=predict,
inputs=["text"],
outputs=["number"],
title="Bayes or Spam?",
)
if __name__ == "__main__":
demo.launch()