aliabd commited on
Commit
b0081a5
·
1 Parent(s): 3a7303a

Upload with huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +7 -7
  2. app.py +2 -1
README.md CHANGED
@@ -1,12 +1,12 @@
 
1
  ---
2
- title: Sentiment Analysis
3
- emoji: 🌍
4
- colorFrom: yellow
5
- colorTo: green
6
  sdk: gradio
7
- sdk_version: 3.2
 
8
  app_file: app.py
9
  pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
+
2
  ---
3
+ title: sentiment_analysis
4
+ emoji: 💩
5
+ colorFrom: indigo
6
+ colorTo: indigo
7
  sdk: gradio
8
+ sdk_version: 3.3
9
+
10
  app_file: app.py
11
  pinned: false
12
  ---
 
 
app.py CHANGED
@@ -1,4 +1,5 @@
1
  # URL: https://huggingface.co/spaces/gradio/sentiment-analysis
 
2
  # imports
3
  import gradio as gr
4
  import nltk
@@ -23,4 +24,4 @@ demo = gr.Interface(
23
  examples=[["This is wonderful!"]])
24
 
25
  # launch
26
- demo.launch()
 
1
  # URL: https://huggingface.co/spaces/gradio/sentiment-analysis
2
+ # DESCRIPTION: This sentiment analaysis demo takes in input text and returns its classification for either positive, negative or neutral using Gradio's Label output. It also uses the default interpretation method so users can click the Interpret button after a submission and see which words had the biggest effect on the output.
3
  # imports
4
  import gradio as gr
5
  import nltk
 
24
  examples=[["This is wonderful!"]])
25
 
26
  # launch
27
+ demo.launch()