Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,11 +30,11 @@ with gr.Blocks(css=".input_image {max-width: 100%; border: 1px solid #ccc; box-s
|
|
| 30 |
submit_btn.click(model_inference, inputs=[image_input, query_input], outputs=output)
|
| 31 |
|
| 32 |
examples = [
|
| 33 |
-
["
|
| 34 |
-
["
|
| 35 |
-
["
|
| 36 |
-
["
|
| 37 |
-
["
|
| 38 |
]
|
| 39 |
gr.Examples(examples=examples, inputs=[image_input, query_input], outputs=output)
|
| 40 |
|
|
|
|
| 30 |
submit_btn.click(model_inference, inputs=[image_input, query_input], outputs=output)
|
| 31 |
|
| 32 |
examples = [
|
| 33 |
+
["american_football.png", "Explain in detail what is depicted in the picture"],
|
| 34 |
+
["bike.png", "Explore the image closely and describe in detail what you discover."],
|
| 35 |
+
["finance.png", "Provide a detailed description of everything you see in the image."],
|
| 36 |
+
["science.png", "Please perform optical character recognition (OCR) on the uploaded image. Extract all text visible in the image accurately. Ensure to capture the text in its entirety and maintain the formatting as closely as possible to how it appears in the image. After extracting the text, display it in a clear and readable format, making sure that any special characters or symbols are also accurately represented. Provide the extracted text as output."],
|
| 37 |
+
["spirituality.png", "Please perform optical character recognition (OCR) on the uploaded image. Extract all text visible in the image accurately. Ensure to capture the text in its entirety and maintain the formatting as closely as possible to how it appears in the image. After extracting the text, display it in a clear and readable format, making sure that any special characters or symbols are also accurately represented. Provide the extracted text as output."]
|
| 38 |
]
|
| 39 |
gr.Examples(examples=examples, inputs=[image_input, query_input], outputs=output)
|
| 40 |
|