Spaces:
Sleeping
Sleeping
app.py skeleton with constant 0.5 prediction
Browse files
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()
|