ranggafermata commited on
Commit
55e835f
·
verified ·
1 Parent(s): 4913ddb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -200,6 +200,13 @@ def generate_image(model_name: str, text: str, image: Image.Image,
200
  time.sleep(0.01)
201
  yield buffer, buffer
202
 
 
 
 
 
 
 
 
203
 
204
  # Create the Gradio Interface
205
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
 
200
  time.sleep(0.01)
201
  yield buffer, buffer
202
 
203
+ # Define examples for image inference
204
+ image_examples = [
205
+ ["Extract the full page.", "images/ocr.png"],
206
+ ["Extract the content.", "images/4.png"],
207
+ ["Convert this page to doc [table] precisely for markdown.", "images/0.png"]
208
+ ]
209
+
210
 
211
  # Create the Gradio Interface
212
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo: