Spaces:
Running
Running
File size: 219 Bytes
7e54273 |
1 2 3 4 5 6 7 8 9 |
#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()
|