Spaces:
Running
Running
add docker runtime
Browse files- Dockerfile +13 -0
- README.md +4 -6
- app.py +1 -1
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
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 |
+
|
9 |
+
COPY . .
|
10 |
+
|
11 |
+
EXPOSE 7860
|
12 |
+
|
13 |
+
CMD [ "python", "./app.py" ]
|
README.md
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
---
|
2 |
title: Donut for Chinese Invoice
|
3 |
-
emoji:
|
4 |
colorFrom: red
|
5 |
-
colorTo:
|
6 |
-
sdk:
|
7 |
-
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
title: Donut for Chinese Invoice
|
3 |
+
emoji: π©
|
4 |
colorFrom: red
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: docker
|
7 |
+
pinned: true
|
|
|
|
|
8 |
---
|
9 |
|
10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -38,7 +38,7 @@ demo = gr.Interface(
|
|
38 |
fn=process_document,
|
39 |
inputs="image",
|
40 |
outputs="json",
|
41 |
-
title="Demo: Donut π© for Invioce Parsing",
|
42 |
cache_examples=False)
|
43 |
|
44 |
demo.launch(server_name="0.0.0.0")
|
|
|
38 |
fn=process_document,
|
39 |
inputs="image",
|
40 |
outputs="json",
|
41 |
+
title="Demo: Donut π© for Chinese Invioce Parsing",
|
42 |
cache_examples=False)
|
43 |
|
44 |
demo.launch(server_name="0.0.0.0")
|