sentiment-demo / app.py
jkmaina
Initial commit
da38f58
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()