sentiment-demo / app-old.py
jkmaina
Movie Review Sentiment Analysis - BERT
7e54273
raw
history blame
219 Bytes
#lesson81.py
import gradio as gr
def sentiment_analysis(text):
return "Positive" if "good" in text.lower() else "Negative"
iface = gr.Interface(fn=sentiment_analysis, inputs="text", outputs="text")
iface.launch()