nbroad commited on
Commit
50fae57
·
verified ·
1 Parent(s): 10dd81d

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. Dockerfile +5 -0
  2. README.md +1 -2
  3. requirements.txt +5 -2
Dockerfile CHANGED
@@ -13,4 +13,9 @@ COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  COPY --chown=user . /app
 
 
 
 
 
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  COPY --chown=user . /app
16
+
17
+
18
+ RUN --mount=type=secret,id=APP_CODE,mode=0444,required=true \
19
+ cat /run/secrets/APP_CODE > app.py
20
+
21
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,4 +1,3 @@
1
- ---
2
  title: Asdfqwerty
3
  emoji: ⚡
4
  colorFrom: purple
@@ -7,4 +6,4 @@ sdk: docker
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  title: Asdfqwerty
2
  emoji: ⚡
3
  colorFrom: purple
 
6
  pinned: false
7
  ---
8
 
9
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
requirements.txt CHANGED
@@ -1,2 +1,5 @@
1
- uvicorn
2
- fastapi
 
 
 
 
1
+ fastapi==0.104.1
2
+ httpx==0.25.2
3
+ uvicorn==0.24.0
4
+ pydantic==2.5.0
5
+ openai==1.3.5