syeedalireza commited on
Commit
c950d6f
·
verified ·
1 Parent(s): bb274c0

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. constraints.txt +1 -0
  3. requirements.txt +1 -0
Dockerfile CHANGED
@@ -5,8 +5,8 @@ USER user
5
  ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
6
  WORKDIR /home/user/app
7
 
8
- COPY --chown=user requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  COPY --chown=user . .
12
 
 
5
  ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
6
  WORKDIR /home/user/app
7
 
8
+ COPY --chown=user requirements.txt constraints.txt ./
9
+ RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt
10
 
11
  COPY --chown=user . .
12
 
constraints.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ huggingface_hub<1.0
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  gradio==4.44.0
 
2
  torch>=2.0.0
3
  transformers>=4.30.0
 
1
  gradio==4.44.0
2
+ huggingface_hub>=0.20.0,<1.0
3
  torch>=2.0.0
4
  transformers>=4.30.0