Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,5 +10,5 @@ def predict(text):
|
|
10 |
prediction = outputs.logits.argmax(dim=-1).item()
|
11 |
return "Spam" if prediction == 1 else "Not Spam"
|
12 |
|
13 |
-
interface = gr.Interface(fn=predict, inputs="
|
14 |
interface.launch(share=True)
|
|
|
10 |
prediction = outputs.logits.argmax(dim=-1).item()
|
11 |
return "Spam" if prediction == 1 else "Not Spam"
|
12 |
|
13 |
+
interface = gr.Interface(fn=predict, inputs="text", outputs="text")
|
14 |
interface.launch(share=True)
|