GitHub Actions commited on
Commit
ea63d32
·
1 Parent(s): 8ff7450

Deploy from GitHub: 11f1ee946700f851e9e3f5bc46a1cfb365fc3564

Browse files
Files changed (3) hide show
  1. app.py +1 -0
  2. docs/HF_README.md +14 -0
  3. docs/README.md +43 -0
app.py CHANGED
@@ -1,4 +1,5 @@
1
  from transformers.tools.base import launch_gradio_demo
2
  from sentiment_analysis import SentimentAnalysisTool
3
 
 
4
  launch_gradio_demo(SentimentAnalysisTool)
 
1
  from transformers.tools.base import launch_gradio_demo
2
  from sentiment_analysis import SentimentAnalysisTool
3
 
4
+ # Version: 1.1.2 - Testing with persist-credentials false
5
  launch_gradio_demo(SentimentAnalysisTool)
docs/HF_README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Sentiment Analysis Tool
3
+ emoji: 👀
4
+ colorFrom: blue
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: 4.3.0
8
+ app_file: app.py
9
+ pinned: false
10
+ tags:
11
+ - tool
12
+ ---
13
+
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
docs/README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # sentiment-analysis-tool
2
+
3
+ Migrated from Hugging Face Spaces.
4
+
5
+ ## Original Space
6
+
7
+ - URL: https://huggingface.co/spaces/Chris4K/sentiment-analysis-tool
8
+ - SDK: gradio
9
+
10
+ ## Deployment
11
+
12
+ This space uses three-tier deployment:
13
+
14
+ 1. **Private Monorepo** (development)
15
+ - Location: `apps/huggingface/sentiment-analysis-tool/`
16
+ - All development happens here
17
+ - Contains secrets and private configuration
18
+
19
+ 2. **Public GitHub Repository**
20
+ - URL: https://github.com/Ckal/sentiment-analysis-tool
21
+ - Synced via git subtree
22
+ - Portfolio/showcase version
23
+ - Deploy: `bash infra/deploy-public-repo.sh`
24
+
25
+ 3. **Hugging Face Space**
26
+ - URL: https://huggingface.co/spaces/Chris4K/sentiment-analysis-tool
27
+ - Auto-deploys from public GitHub via Actions
28
+ - Live public demo
29
+
30
+ ## Development
31
+
32
+ 1. Make changes in `src/`
33
+ 2. Test locally
34
+ 3. Commit to private repo
35
+ 4. Deploy to public: `bash infra/deploy-public-repo.sh`
36
+ 5. GitHub Actions auto-pushes to HF Space
37
+
38
+ ## Files
39
+
40
+ - `src/app.py` - Main application
41
+ - `src/requirements.txt` - Dependencies
42
+ - `build.sh` - Build script
43
+ - `app.yaml` - Application configuration