jkmaina commited on
Commit
da38f58
·
1 Parent(s): a3420d1

Initial commit

Browse files
Files changed (3) hide show
  1. Readme.md +2 -0
  2. app.py +8 -0
  3. requirements.txt +1 -0
Readme.md ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # Sentiment Analysis Demo
2
+ A simple sentiment analysis demo using Gradio.
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #lesson81.py
2
+ import gradio as gr
3
+
4
+ def sentiment_analysis(text):
5
+ return "Positive" if "good" in text.lower() else "Negative"
6
+
7
+ iface = gr.Interface(fn=sentiment_analysis, inputs="text", outputs="text")
8
+ iface.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio