Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -350,7 +350,7 @@ def process_document_stream(
|
|
| 350 |
def create_gradio_interface():
|
| 351 |
"""Builds and returns the Gradio web interface."""
|
| 352 |
|
| 353 |
-
with gr.Blocks(
|
| 354 |
gr.Markdown("# **Multimodal VLM v1.0**", elem_id="main-title")
|
| 355 |
gr.Markdown("Explore the capabilities of various Vision Language Models for tasks like OCR, VQA, and Object Detection.")
|
| 356 |
|
|
@@ -414,7 +414,7 @@ def create_gradio_interface():
|
|
| 414 |
|
| 415 |
with gr.Column(scale=3):
|
| 416 |
gr.Markdown("## Output", elem_id="output-title")
|
| 417 |
-
output_stream = gr.Textbox(label="Raw Output Stream", interactive=
|
| 418 |
|
| 419 |
gr.Examples(
|
| 420 |
examples=[
|
|
@@ -450,4 +450,4 @@ def create_gradio_interface():
|
|
| 450 |
|
| 451 |
if __name__ == "__main__":
|
| 452 |
demo = create_gradio_interface()
|
| 453 |
-
demo.queue(max_size=50).launch(ssr_mode=False, mcp_server=True, show_error=True)
|
|
|
|
| 350 |
def create_gradio_interface():
|
| 351 |
"""Builds and returns the Gradio web interface."""
|
| 352 |
|
| 353 |
+
with gr.Blocks() as demo:
|
| 354 |
gr.Markdown("# **Multimodal VLM v1.0**", elem_id="main-title")
|
| 355 |
gr.Markdown("Explore the capabilities of various Vision Language Models for tasks like OCR, VQA, and Object Detection.")
|
| 356 |
|
|
|
|
| 414 |
|
| 415 |
with gr.Column(scale=3):
|
| 416 |
gr.Markdown("## Output", elem_id="output-title")
|
| 417 |
+
output_stream = gr.Textbox(label="Raw Output Stream", interactive=True, lines=24)
|
| 418 |
|
| 419 |
gr.Examples(
|
| 420 |
examples=[
|
|
|
|
| 450 |
|
| 451 |
if __name__ == "__main__":
|
| 452 |
demo = create_gradio_interface()
|
| 453 |
+
demo.queue(max_size=50).launch(theme=steel_blue_theme, css=css, ssr_mode=False, mcp_server=True, show_error=True)
|