Spaces:
Runtime error
Runtime error
lomtom
commited on
Commit
·
ef4b1ef
1
Parent(s):
69c83a5
temp
Browse files- Dockerfile +12 -0
- app.py +1 -1
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
RUN pip install uvicorn==0.20.0 gradio
|
9 |
+
|
10 |
+
COPY . .
|
11 |
+
|
12 |
+
ENTRYPOINT ["python3", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
app.py
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
gr.
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
gr.load("models/bigcode/starcoder").launch()
|