mp-02 commited on
Commit
6353a8a
1 Parent(s): 1d0a543

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -1,14 +1,7 @@
1
- from inference import prediction as cord_sroie_prediction
2
  import gradio as gr
3
  import json
4
 
5
- def prediction(image):
6
-
7
- j2, image_final = cord_sroie_prediction(image)
8
-
9
- return j2, image_final
10
-
11
-
12
  title = "Interactive demo: LayoutLMv3 for receipts"
13
  description = "Demo for Microsoft's LayoutLMv3, a Transformer for state-of-the-art document image understanding tasks. This particular space uses two instances of the model, one fine-tuned on CORD and the other SROIE.\n It firsts uses the fine-tune on SROIE to extract date, company and address, then the fine-tune on CORD for the other info. To use it, simply upload an image or use the example image below. Results will show up in a few seconds."
14
  examples = [['image.jpeg'],['image.png']]
 
1
+ from inference import prediction
2
  import gradio as gr
3
  import json
4
 
 
 
 
 
 
 
 
5
  title = "Interactive demo: LayoutLMv3 for receipts"
6
  description = "Demo for Microsoft's LayoutLMv3, a Transformer for state-of-the-art document image understanding tasks. This particular space uses two instances of the model, one fine-tuned on CORD and the other SROIE.\n It firsts uses the fine-tune on SROIE to extract date, company and address, then the fine-tune on CORD for the other info. To use it, simply upload an image or use the example image below. Results will show up in a few seconds."
7
  examples = [['image.jpeg'],['image.png']]