electblake commited on
Commit
4debd81
·
1 Parent(s): 2ab3f5a

remove codex

Browse files
Files changed (3) hide show
  1. .codex/skills/gradio +0 -1
  2. .codex/skills/hf-gradio +0 -1
  3. app.py +11 -57
.codex/skills/gradio DELETED
@@ -1 +0,0 @@
1
- ../../.agents/skills/gradio
 
 
.codex/skills/hf-gradio DELETED
@@ -1 +0,0 @@
1
- ../../.agents/skills/hf-gradio
 
 
app.py CHANGED
@@ -248,65 +248,19 @@ with gr.Blocks(title="Image Data Extractor") as demo:
248
  gr.Examples(
249
  examples=[
250
  [
251
- "Basic receipt",
252
- str(
253
- Path(__file__).parent
254
- / "data"
255
- / "samples"
256
- / "receipt-ocr-original.webp"
257
- ),
258
  "",
259
  False,
260
- ],
261
- [
262
- "Invoice with line items",
263
- str(
264
- Path(__file__).parent
265
- / "data"
266
- / "samples"
267
- / "invoice-with-items.png"
268
- ),
269
- "",
270
- False,
271
- ],
272
- [
273
- "Advanced bank statement",
274
- str(
275
- Path(__file__).parent
276
- / "data"
277
- / "samples"
278
- / "BankStatementChequing.png"
279
- ),
280
- "",
281
- False,
282
- ],
283
- [
284
- "Basic bank statement",
285
- str(
286
- Path(__file__).parent
287
- / "data"
288
- / "samples"
289
- / "bank statement blog image.webp"
290
- ),
291
- "",
292
- False,
293
- ],
294
- *[
295
- [
296
- default_structured_json_template,
297
- str(path),
298
- "",
299
- False,
300
- ]
301
- for path in sorted(
302
- path
303
- for path in (Path(__file__).parent / "data" / "samples").glob(
304
- "*.png"
305
- )
306
- if path.name
307
- not in {"BankStatementChequing.png", "invoice-with-items.png"}
308
- )
309
- ],
310
  ],
311
  inputs=[template_preset, image, text, enable_thinking],
312
  )
 
248
  gr.Examples(
249
  examples=[
250
  [
251
+ preset,
252
+ str(Path(__file__).parent / "data" / "samples" / filename),
 
 
 
 
 
253
  "",
254
  False,
255
+ ]
256
+ for preset, filename in [
257
+ ("Basic receipt", "receipt-ocr-original.webp"),
258
+ ("Invoice with line items", "invoice-with-items.png"),
259
+ ("Advanced bank statement", "BankStatementChequing.png"),
260
+ ("Basic bank statement", "bank statement blog image.webp"),
261
+ ("Advanced global record", "tags.png"),
262
+ ("Advanced global record", "task-list.png"),
263
+ ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  ],
265
  inputs=[template_preset, image, text, enable_thinking],
266
  )