Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,16 +39,16 @@ def process_document(image):
|
|
| 39 |
|
| 40 |
return processor.token2json(sequence)
|
| 41 |
|
| 42 |
-
description = "Oman LPR based on Donut 🍩 Model"
|
| 43 |
|
| 44 |
demo = gr.Interface(
|
| 45 |
fn=process_document,
|
| 46 |
inputs="image",
|
| 47 |
outputs="json",
|
| 48 |
title="Oman LPR",
|
| 49 |
-
description=description,
|
| 50 |
enable_queue=True,
|
| 51 |
-
|
| 52 |
cache_examples=False)
|
| 53 |
|
| 54 |
demo.launch()
|
|
|
|
| 39 |
|
| 40 |
return processor.token2json(sequence)
|
| 41 |
|
| 42 |
+
# description = "Oman LPR based on Donut 🍩 Model"
|
| 43 |
|
| 44 |
demo = gr.Interface(
|
| 45 |
fn=process_document,
|
| 46 |
inputs="image",
|
| 47 |
outputs="json",
|
| 48 |
title="Oman LPR",
|
| 49 |
+
# description=description,
|
| 50 |
enable_queue=True,
|
| 51 |
+
examples=[["example.jpg"], ["example_2.jpg"], ["example_3.jpg"]],
|
| 52 |
cache_examples=False)
|
| 53 |
|
| 54 |
demo.launch()
|