Spaces:
Runtime error
Runtime error
uripper
commited on
Commit
·
c1014c1
1
Parent(s):
becee12
- Dockerfile +1 -1
- app/download_models.py +2 -2
Dockerfile
CHANGED
@@ -8,7 +8,7 @@ WORKDIR /app
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
-
RUN pip install
|
12 |
|
13 |
# Debugging: Print the contents of the /app directory
|
14 |
RUN ls -la /app
|
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
+
RUN pip install -r /app/requirements.txt
|
12 |
|
13 |
# Debugging: Print the contents of the /app directory
|
14 |
RUN ls -la /app
|
app/download_models.py
CHANGED
@@ -2,10 +2,10 @@ import os
|
|
2 |
from huggingface_hub import hf_hub_download
|
3 |
|
4 |
# Get the Hugging Face token from environment variable (automatically provided from the secret)
|
5 |
-
HUGGINGFACE_TOKEN = os.getenv("
|
6 |
|
7 |
if HUGGINGFACE_TOKEN is None:
|
8 |
-
raise ValueError("Hugging Face token is missing. Please set the '
|
9 |
|
10 |
def create_directory(dir_path):
|
11 |
"""
|
|
|
2 |
from huggingface_hub import hf_hub_download
|
3 |
|
4 |
# Get the Hugging Face token from environment variable (automatically provided from the secret)
|
5 |
+
HUGGINGFACE_TOKEN = os.getenv("HF_TOKEN")
|
6 |
|
7 |
if HUGGINGFACE_TOKEN is None:
|
8 |
+
raise ValueError("Hugging Face token is missing. Please set the 'HF_TOKEN' environment variable.")
|
9 |
|
10 |
def create_directory(dir_path):
|
11 |
"""
|