tbitai commited on
Commit
850dd49
·
verified ·
1 Parent(s): 7840b3d

app.py skeleton with constant 0.5 prediction

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def predict(input_txt):
4
+ return 0.5
5
+
6
+ demo = gr.Interface(
7
+ fn=predict,
8
+ inputs=["text"],
9
+ outputs=["number"],
10
+ title="Bayes or Spam?",
11
+ )
12
+
13
+ if __name__ == "__main__":
14
+ demo.launch()