Plachta commited on
Commit
718bc0f
1 Parent(s): a5b2d18

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +15 -0
  2. __init__.py +0 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ COPY --link --chown=1000 . .
6
+
7
+ RUN mkdir -p /tmp/cache/
8
+ RUN chmod a+rwx -R /tmp/cache/
9
+ ENV TRANSFORMERS_CACHE=/tmp/cache/
10
+
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
14
+
15
+ CMD ["python", "app.py"]
__init__.py ADDED
File without changes