Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from llavamed_inference_openvino import run_inference_image
|
4 |
|
5 |
css = """
|
6 |
-
.text textarea {font-size: 24px !important}
|
7 |
"""
|
8 |
|
9 |
def process_inputs(image, question):
|
@@ -21,10 +21,12 @@ def reset_inputs():
|
|
21 |
with gr.Blocks(css=css) as demo:
|
22 |
gr.Markdown("# LLaVA-Med 1.5 OpenVINO Demo")
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
28 |
|
29 |
with gr.Row():
|
30 |
process_button = gr.Button("Process")
|
|
|
3 |
from llavamed_inference_openvino import run_inference_image
|
4 |
|
5 |
css = """
|
6 |
+
.text textarea {font-size: 24px !important;}
|
7 |
"""
|
8 |
|
9 |
def process_inputs(image, question):
|
|
|
21 |
with gr.Blocks(css=css) as demo:
|
22 |
gr.Markdown("# LLaVA-Med 1.5 OpenVINO Demo")
|
23 |
|
24 |
+
with gr.Row():
|
25 |
+
with gr.Column():
|
26 |
+
image_input = gr.Image(type="pil", label="Upload an Image", height=300, width=500)
|
27 |
+
with gr.Column():
|
28 |
+
text_input = gr.Textbox(label="Enter a Question", elem_classes="text")
|
29 |
+
output_text = gr.Textbox(label="Answer", interactive=False, elem_classes="text")
|
30 |
|
31 |
with gr.Row():
|
32 |
process_button = gr.Button("Process")
|