devil2810 commited on
Commit
dbb32c1
·
verified ·
1 Parent(s): 8205a80

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -26
README.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
 
2
  # RoBERTa IMDb Sentiment Analyzer — Pro (Docker-ready)
3
 
@@ -11,31 +21,5 @@ This project provides a professional-grade sentiment analysis API & UI using a R
11
 
12
  ## Local Testing (Optional)
13
  1. Create & activate venv:
14
- ```
15
- python -m venv venv
16
- venv\Scripts\activate
17
- ```
18
  2. Install dependencies (recommended to install torch wheel suitable for your system first):
19
- ```
20
- pip install -r requirements.txt
21
- ```
22
  3. Run:
23
- ```
24
- python app.py
25
- ```
26
- 4. Open: http://127.0.0.1:7860/
27
-
28
- ## Deploy to Hugging Face Spaces (Docker)
29
- 1. Create a new Space on Hugging Face:
30
- - SDK: Docker
31
- - Hardware: CPU (Free)
32
- 2. Upload all files from this repository (you can upload the ZIP contents).
33
- 3. Wait for the Space to build. The first run may take time as the model downloads.
34
-
35
- ## API
36
- - `POST /api/predict` accepts JSON: `{ "text": "your text" }`
37
- - Response: `{ "label": "Positive"/"Negative", "confidence": 0.987 }`
38
-
39
- ## Notes
40
- - The app sets Hugging Face cache to `/tmp` to avoid container permission issues.
41
- - If you want to include a local pre-downloaded model, place it under `model/` and change `MODEL_ID` to the path.
 
1
+ ---
2
+ title: RoBERTa IMDb Sentiment Analyzer — Pro
3
+ emoji: 🤖
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: docker
7
+ sdk_version: "latest"
8
+ app_file: app.py
9
+ pinned: true
10
+ ---
11
 
12
  # RoBERTa IMDb Sentiment Analyzer — Pro (Docker-ready)
13
 
 
21
 
22
  ## Local Testing (Optional)
23
  1. Create & activate venv:
 
 
 
 
24
  2. Install dependencies (recommended to install torch wheel suitable for your system first):
 
 
 
25
  3. Run: