Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,6 +62,12 @@ print("TEXT INPUT: ", text)
|
|
62 |
print("WORD PARSING: ",words)
|
63 |
print("flashcard output:",make_flashcards(words, "korean"))
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
demo = gr.ChatInterface(
|
67 |
fn=ocr_inference,
|
|
|
62 |
print("WORD PARSING: ",words)
|
63 |
print("flashcard output:",make_flashcards(words, "korean"))
|
64 |
|
65 |
+
examples = [
|
66 |
+
[{"text": "@RolmOCR OCR the Text in the Image", "files": ["rolm/1.jpeg"]}],
|
67 |
+
[{"text": "@RolmOCR Explain the Ad in Detail", "files": ["examples/videoplayback.mp4"]}],
|
68 |
+
[{"text": "@RolmOCR OCR the Image", "files": ["rolm/3.jpeg"]}],
|
69 |
+
[{"text": "Extract as JSON table from the table", "files": ["examples/4.jpg"]}],
|
70 |
+
]
|
71 |
|
72 |
demo = gr.ChatInterface(
|
73 |
fn=ocr_inference,
|