Denver Citizen9 commited on
Commit
cb52f08
·
1 Parent(s): bffccd6
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -87,6 +87,13 @@ def process_json(json_data):
87
 
88
  def launch_demo():
89
 
 
 
 
 
 
 
 
90
  default_example = """{
91
  \"base64\" : \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAg...\" ,
92
  \"result\" : [
@@ -2804,13 +2811,6 @@ def launch_demo():
2804
  ]
2805
  }"""
2806
 
2807
- title = 'Snail Mail Muncher'
2808
- description = """Enter JSON data from PP OCR v3 and click Submit to process it.
2809
- Note that an enhanced workflow would start with an image file, send it to a hosted PP-OCR inference API, process it to get this JSON, and submit for you. This is a simple example that let's you copy/paste json from your own document OR you may also use the example, which comes from the 'SampleCableBill.png' in the related repo. In this example we use OpenAI but with an updated prompt something open source like Dolly would be more ideal."""
2810
-
2811
-
2812
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
2813
-
2814
  gr.Markdown(f'<center><h1>{title}</h1></center>')
2815
  gr.Markdown(description)
2816
 
 
87
 
88
  def launch_demo():
89
 
90
+ title = 'Snail Mail Muncher'
91
+ description = """Enter JSON data from PP OCR v3 and click Submit to process it.
92
+ Note that an enhanced workflow would start with an image file, send it to a hosted PP-OCR inference API, process it to get this JSON, and submit for you. This is a simple example that let's you copy/paste json from your own document OR you may also use the example, which comes from the 'SampleCableBill.png' in the related repo. In this example we use OpenAI but with an updated prompt something open source like Dolly would be more ideal."""
93
+
94
+
95
+ with gr.Blocks(theme=gr.themes.Soft()) as demo:
96
+
97
  default_example = """{
98
  \"base64\" : \"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAg...\" ,
99
  \"result\" : [
 
2811
  ]
2812
  }"""
2813
 
 
 
 
 
 
 
 
2814
  gr.Markdown(f'<center><h1>{title}</h1></center>')
2815
  gr.Markdown(description)
2816