helenai commited on
Commit
e31950d
·
verified ·
1 Parent(s): ea8e565

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
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
- image_input = gr.Image(type="pil", label="Upload an Image", height=600, width=1000)
25
- text_input = gr.Textbox(label="Enter a Question", elem_classes="text")
26
-
27
- output_text = gr.Textbox(label="Output", interactive=False, elem_classes="text")
 
 
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")