yuanchenyang
commited on
Commit
•
7e8109c
1
Parent(s):
3dd2050
Added dockerfile
Browse files- Dockerfile +20 -0
- app.py +4 -0
- requirements.txt +2 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
# you will also find guides on how best to write your Dockerfile
|
3 |
+
|
4 |
+
FROM python:3.9
|
5 |
+
|
6 |
+
WORKDIR /code
|
7 |
+
|
8 |
+
COPY ./requirements.txt /code/requirements.txt
|
9 |
+
|
10 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
+
|
12 |
+
WORKDIR /
|
13 |
+
|
14 |
+
RUN git clone git@github.com:yuanchenyang/multifocal-stitching.git multifocal-stitching
|
15 |
+
|
16 |
+
COPY ./app.py /multifocal-stitching/app.py
|
17 |
+
|
18 |
+
WORKDIR /multifocal-stitching
|
19 |
+
|
20 |
+
CMD ["python", "app.py"]
|
app.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sys
|
2 |
+
sys.path.append('gradio')
|
3 |
+
from app import demo
|
4 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio
|
2 |
+
multifocal-stitching
|