ewfian commited on
Commit
1ea5949
β€’
1 Parent(s): bcef638

add docker runtime

Browse files
Files changed (3) hide show
  1. Dockerfile +13 -0
  2. README.md +4 -6
  3. 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: blue
6
- sdk: gradio
7
- sdk_version: 4.2.0
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")