Spaces:
Runtime error
Runtime error
initial-commit
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from sentiment import vectr, clf
|
3 |
+
|
4 |
+
def predict(text):
|
5 |
+
text_sent = clf.predict(vectr.transform([text]))
|
6 |
+
return text_sent
|
7 |
+
|
8 |
+
demo = gr.Interface(fn=predict, inputs="text", outputs="text")
|
9 |
+
demo.launch(share=True)
|