rks28042003 commited on
Commit
3a96409
·
1 Parent(s): 11e7b69

Fix examples section to use local files

Browse files
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -148,22 +148,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
148
  outputs=output_text
149
  )
150
 
151
- # Example section
152
- gr.Markdown("### Examples")
153
- gr.Markdown("Click on an example below to try the model with sample receipt images:")
154
 
155
- example_urls = [
156
- "https://upload.wikimedia.org/wikipedia/commons/7/76/Receipt_from_a_restaurant_in_Japan.jpg",
157
- "https://upload.wikimedia.org/wikipedia/commons/9/92/Japanese_receipt_and_coins.jpg"
158
- ]
159
-
160
- gr.Examples(
161
- examples=example_urls,
162
- inputs=input_image,
163
- outputs=[output_json, output_text],
164
- fn=process_receipt,
165
- cache_examples=True
166
- )
167
 
168
  # Model info
169
  with gr.Accordion("Model Information", open=False):
 
148
  outputs=output_text
149
  )
150
 
 
 
 
151
 
 
 
 
 
 
 
 
 
 
 
 
 
152
 
153
  # Model info
154
  with gr.Accordion("Model Information", open=False):