Archisman Karmakar
commited on
Commit
·
b3fa4ae
1
Parent(s):
9df22a3
docker fix HF space
Browse files- .github/workflows/dfploy_to_HF_space_DOCKER.yml +30 -0
- Dockerfile +1 -1
- README.md +13 -1
.github/workflows/dfploy_to_HF_space_DOCKER.yml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Deploy to Hugging Face Spaces
|
2 |
+
permissions:
|
3 |
+
contents: read
|
4 |
+
|
5 |
+
on:
|
6 |
+
push:
|
7 |
+
branches:
|
8 |
+
- main
|
9 |
+
workflow_dispatch:
|
10 |
+
|
11 |
+
jobs:
|
12 |
+
deploy:
|
13 |
+
runs-on: ubuntu-latest
|
14 |
+
|
15 |
+
steps:
|
16 |
+
- name: Check out repository
|
17 |
+
uses: actions/checkout@v3
|
18 |
+
with:
|
19 |
+
fetch-depth: 0
|
20 |
+
|
21 |
+
- name: Log in to Hugging Face Docker registry
|
22 |
+
env:
|
23 |
+
HF_READ_WRITE_TOKEN: ${{ secrets.HF_READ_WRITE_TOKEN }}
|
24 |
+
run: echo "${{ secrets.HF_READ_WRITE_TOKEN }}" | docker login --username ${{ secrets.HF_USERNAME }} --password-stdin huggingface.co
|
25 |
+
|
26 |
+
- name: Build the Docker image
|
27 |
+
run: docker build -t huggingface.co/spaces/tachygraphy-microtrext-norm-org/Tachygraphy-Microtext-Analysis-and-Normalization-ArchismanCoder .
|
28 |
+
|
29 |
+
- name: Push the Docker image to Hugging Face
|
30 |
+
run: docker push huggingface.co/spaces/tachygraphy-microtrext-norm-org/Tachygraphy-Microtext-Analysis-and-Normalization-ArchismanCoder
|
Dockerfile
CHANGED
@@ -17,7 +17,7 @@ WORKDIR /app
|
|
17 |
COPY requirements.txt .
|
18 |
|
19 |
# Upgrade pip and install Python dependencies
|
20 |
-
RUN pip install --upgrade pip && pip install -r requirements.txt
|
21 |
|
22 |
# Check Installed Packages
|
23 |
RUN pip list
|
|
|
17 |
COPY requirements.txt .
|
18 |
|
19 |
# Upgrade pip and install Python dependencies
|
20 |
+
RUN pip install --upgrade pip && pip install -r requirements.txt --no-cache-dir
|
21 |
|
22 |
# Check Installed Packages
|
23 |
RUN pip list
|
README.md
CHANGED
@@ -3,11 +3,23 @@ title: Tachygraphy Microtext Analysis And Normalization WebApp Deployment
|
|
3 |
emoji: 💻
|
4 |
colorFrom: purple
|
5 |
colorTo: gray
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.43.2
|
8 |
app_file: app_main_hf.py
|
9 |
pinned: false
|
10 |
short_description: This project focuses on the Tachygraphy Microtext Analysis
|
11 |
-
---
|
12 |
|
13 |
# Tachygraphy-Microtext-Analysis-And-Normalization-Deployment-Source-HuggingFace_Streamlit_JPX14032025
|
|
|
3 |
emoji: 💻
|
4 |
colorFrom: purple
|
5 |
colorTo: gray
|
6 |
+
sdk: docker
|
7 |
+
app_file: app_main_hf.py
|
8 |
+
pinned: false
|
9 |
+
short_description: This project focuses on the Tachygraphy Microtext Analysis
|
10 |
+
---
|
11 |
+
|
12 |
+
|
13 |
+
<!-- ---
|
14 |
+
title: Tachygraphy Microtext Analysis And Normalization WebApp Deployment
|
15 |
+
emoji: 💻
|
16 |
+
colorFrom: purple
|
17 |
+
colorTo: gray
|
18 |
sdk: streamlit
|
19 |
sdk_version: 1.43.2
|
20 |
app_file: app_main_hf.py
|
21 |
pinned: false
|
22 |
short_description: This project focuses on the Tachygraphy Microtext Analysis
|
23 |
+
--- -->
|
24 |
|
25 |
# Tachygraphy-Microtext-Analysis-And-Normalization-Deployment-Source-HuggingFace_Streamlit_JPX14032025
|