Spaces:
Paused
Paused
Update tabs/image_ocr_llm.py
Browse files- tabs/image_ocr_llm.py +2 -2
tabs/image_ocr_llm.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from components.llm_ocr_api import extract_text_from_space #
|
| 3 |
|
| 4 |
def image_ocr_llm_tab():
|
| 5 |
with gr.Tab("📸 OCR (LLM)"):
|
|
@@ -7,7 +7,7 @@ def image_ocr_llm_tab():
|
|
| 7 |
|
| 8 |
with gr.Row():
|
| 9 |
with gr.Column():
|
| 10 |
-
img_input = gr.Image(type="
|
| 11 |
extract_btn = gr.Button("Extract Text")
|
| 12 |
clear_btn = gr.Button("Clear")
|
| 13 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from components.llm_ocr_api import extract_text_from_space # ✅ Gradio Client-based API call
|
| 3 |
|
| 4 |
def image_ocr_llm_tab():
|
| 5 |
with gr.Tab("📸 OCR (LLM)"):
|
|
|
|
| 7 |
|
| 8 |
with gr.Row():
|
| 9 |
with gr.Column():
|
| 10 |
+
img_input = gr.Image(type="filepath", label="Upload Handwritten Image") # ✅ Must be 'filepath'
|
| 11 |
extract_btn = gr.Button("Extract Text")
|
| 12 |
clear_btn = gr.Button("Clear")
|
| 13 |
|