doctorx commited on
Commit
725f213
β€’
1 Parent(s): 40f1ec3

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. server51.py +1 -2
Dockerfile CHANGED
@@ -19,7 +19,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
19
 
20
  # Upgrade pip and setuptools
21
  RUN pip install --upgrade pip setuptools
22
-
 
23
  # Copy the requirements file and install dependencies
24
  COPY requirements.txt .
25
  RUN pip install --no-cache-dir -r requirements.txt
 
19
 
20
  # Upgrade pip and setuptools
21
  RUN pip install --upgrade pip setuptools
22
+ #create folder
23
+ RUN mkdir /app/models
24
  # Copy the requirements file and install dependencies
25
  COPY requirements.txt .
26
  RUN pip install --no-cache-dir -r requirements.txt
server51.py CHANGED
@@ -7,8 +7,7 @@ import seamless_m4t_pb2_grpc
7
  from concurrent import futures
8
  import grpc
9
  import io
10
- # Set Hugging Face cache path
11
- os.environ["HF_HOME"] = "/path/to/custom/huggingface_cache" # Change this to your desired path
12
 
13
  # Load the transcription model and processor
14
  MODEL_NAME = "facebook/seamless-m4t-v2-large"
 
7
  from concurrent import futures
8
  import grpc
9
  import io
10
+
 
11
 
12
  # Load the transcription model and processor
13
  MODEL_NAME = "facebook/seamless-m4t-v2-large"