Spaces:
Running
Running
lucabadiali
commited on
Commit
Β·
7f4471a
1
Parent(s):
f33d7aa
Removed useless files
Browse files- .gitignore +20 -9
- README.md +33 -1
- src/app/app_post.py +1 -1
.gitignore
CHANGED
|
@@ -1,11 +1,22 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
.
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
.env
|
| 9 |
-
src/__pycache__
|
| 10 |
-
tests/__pycache__
|
| 11 |
|
|
|
|
|
|
|
|
|
| 1 |
+
# Virtual envs / environments
|
| 2 |
+
ProjectEnv/
|
| 3 |
+
.venv/
|
| 4 |
+
venv/
|
| 5 |
+
|
| 6 |
+
# Model artifacts / data
|
| 7 |
+
models/
|
| 8 |
+
data/dataset/
|
| 9 |
+
data/__pycache__/
|
| 10 |
+
|
| 11 |
+
# Python caches
|
| 12 |
+
**/__pycache__/
|
| 13 |
+
*.py[cod]
|
| 14 |
+
|
| 15 |
+
# Pytest cache
|
| 16 |
+
.pytest_cache/
|
| 17 |
+
|
| 18 |
+
# Environment files
|
| 19 |
.env
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
# Bytecode again (in case)
|
| 22 |
+
*.pyc
|
README.md
CHANGED
|
@@ -10,4 +10,36 @@ pinned: false
|
|
| 10 |
|
| 11 |
# Sentiment Analysis API
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Sentiment Analysis API
|
| 12 |
|
| 13 |
+
The top part of this file is meant to run a docker image in Hugging Face (more details below).
|
| 14 |
+
|
| 15 |
+
Structure of the project folder:
|
| 16 |
+
|
| 17 |
+
.github/
|
| 18 |
+
βββ workflows/
|
| 19 |
+
βββ huggingface-space-deploy.yml
|
| 20 |
+
βββ python-app.yml
|
| 21 |
+
data/
|
| 22 |
+
βββ load_data.py
|
| 23 |
+
models/
|
| 24 |
+
src/
|
| 25 |
+
βββ app/
|
| 26 |
+
βββ __pycache__/
|
| 27 |
+
βββ config.cpython-311.pyc
|
| 28 |
+
βββ __init__.py
|
| 29 |
+
βββ app_post.py
|
| 30 |
+
βββ app.py
|
| 31 |
+
βββ config.py
|
| 32 |
+
βββ utils.py
|
| 33 |
+
βββ train_model.py
|
| 34 |
+
tests/
|
| 35 |
+
βββ test_app.py
|
| 36 |
+
.dockerignore
|
| 37 |
+
.gitignore
|
| 38 |
+
docker-compose.yml
|
| 39 |
+
Dockerfile
|
| 40 |
+
env_config.sh
|
| 41 |
+
prometheus.yml
|
| 42 |
+
pytest.ini
|
| 43 |
+
README.md
|
| 44 |
+
requirements.txt
|
| 45 |
+
|
src/app/app_post.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import requests
|
| 2 |
|
| 3 |
-
url = "
|
| 4 |
|
| 5 |
data = {
|
| 6 |
"input_texts" : [
|
|
|
|
| 1 |
import requests
|
| 2 |
|
| 3 |
+
url = "https://lucabadiali-ml-ops-project.hf.space/predict"
|
| 4 |
|
| 5 |
data = {
|
| 6 |
"input_texts" : [
|