Spaces:
Running
Running
added examples
Browse files
app.py
CHANGED
@@ -113,13 +113,13 @@ with gr.Blocks(theme=seafoam, css=custom_css) as demo:
|
|
113 |
output_image = gr.Image(type="pil", label="Processed Image")
|
114 |
output_text = gr.Textbox(label="Recognized Text", lines=10, elem_classes="custom-textbox")
|
115 |
|
116 |
-
#
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
|
124 |
# Connect logic
|
125 |
run_button.click(fn=process_image, inputs=[input_image, lang_dropdown], outputs=[output_image, output_text])
|
|
|
113 |
output_image = gr.Image(type="pil", label="Processed Image")
|
114 |
output_text = gr.Textbox(label="Recognized Text", lines=10, elem_classes="custom-textbox")
|
115 |
|
116 |
+
# Examples shown separately (to avoid schema error)
|
117 |
+
gr.Examples(
|
118 |
+
examples=[["test_images/image_88.jpg", "auto"],
|
119 |
+
["test_images/image_742.jpg", "hindi"]],
|
120 |
+
inputs=[input_image, lang_dropdown],
|
121 |
+
label="Try an example"
|
122 |
+
)
|
123 |
|
124 |
# Connect logic
|
125 |
run_button.click(fn=process_image, inputs=[input_image, lang_dropdown], outputs=[output_image, output_text])
|