Spaces:
Running
Running
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() |