Spaces:
Sleeping
Sleeping
SiddanthEmani
commited on
Commit
·
ed6d701
1
Parent(s):
ab3419d
Added doc and gitignore
Browse files- .gitignore +45 -0
- doc.md +16 -0
.gitignore
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Python
|
2 |
+
__pycache__/
|
3 |
+
*.py[cod]
|
4 |
+
*$py.class
|
5 |
+
*.so
|
6 |
+
.Python
|
7 |
+
env/
|
8 |
+
build/
|
9 |
+
develop-eggs/
|
10 |
+
dist/
|
11 |
+
downloads/
|
12 |
+
eggs/
|
13 |
+
.eggs/
|
14 |
+
lib/
|
15 |
+
lib64/
|
16 |
+
parts/
|
17 |
+
sdist/
|
18 |
+
var/
|
19 |
+
wheels/
|
20 |
+
*.egg-info/
|
21 |
+
.installed.cfg
|
22 |
+
*.egg
|
23 |
+
|
24 |
+
# Virtual Environment
|
25 |
+
venv/
|
26 |
+
ENV/
|
27 |
+
env/
|
28 |
+
|
29 |
+
# Jupyter Notebook
|
30 |
+
.ipynb_checkpoints
|
31 |
+
|
32 |
+
# Mac OS
|
33 |
+
.DS_Store
|
34 |
+
|
35 |
+
# IDE specific files
|
36 |
+
.idea/
|
37 |
+
.vscode/
|
38 |
+
*.swp
|
39 |
+
*.swo
|
40 |
+
|
41 |
+
# Gradio specific
|
42 |
+
flagged/
|
43 |
+
|
44 |
+
# Logs
|
45 |
+
*.log
|
doc.md
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# MCP - Sentiment Analysis
|
2 |
+
|
3 |
+
## Dependencies
|
4 |
+
- `gradio[mcp]`
|
5 |
+
- `textblob`
|
6 |
+
|
7 |
+
## File Structure
|
8 |
+
### server.py
|
9 |
+
Main file to run the Gradio app.
|
10 |
+
- Gradio interface with MCP server is launched
|
11 |
+
- Input = Text from textbox
|
12 |
+
- Output = JSON with sentiment analysis results (polarity, subjectivity, assessment)
|
13 |
+
|
14 |
+
## Functions
|
15 |
+
1. `analyze_sentiment(text) -> dict`
|
16 |
+
|