Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,4 +60,19 @@ print("OCR OUTPUT: ", ocr_inference(img, "korean"))
|
|
60 |
words=text_inference(text, "korean")
|
61 |
print("TEXT INPUT: ", text)
|
62 |
print("WORD PARSING: ",words)
|
63 |
-
print("flashcard output:",make_flashcards(words, "korean"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
words=text_inference(text, "korean")
|
61 |
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=model_inference,
|
68 |
+
description="# **Multimodal OCR `@RolmOCR and Default Qwen2VL OCR`**",
|
69 |
+
examples=examples,
|
70 |
+
textbox=gr.MultimodalTextbox(
|
71 |
+
label="Query Input",
|
72 |
+
file_types=["image", "video"],
|
73 |
+
file_count="multiple",
|
74 |
+
placeholder="Use tag @RolmOCR for RolmOCR, or leave blank for default Qwen2VL OCR"
|
75 |
+
),
|
76 |
+
stop_btn="Stop Generation",
|
77 |
+
multimodal=True,
|
78 |
+
cache_examples=False,
|