srini047's picture
initial-commit
074cf1f
raw
history blame
234 Bytes
import gradio as gr
from sentiment import vectr, clf
def predict(text):
text_sent = clf.predict(vectr.transform([text]))
return text_sent
demo = gr.Interface(fn=predict, inputs="text", outputs="text")
demo.launch(share=True)