diabolic6045 commited on
Commit
076dfd1
·
verified ·
1 Parent(s): 733432c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def generate_text(image, task, input_text=None):
62
  # Define the Gradio interface
63
  with gr.Blocks() as demo:
64
  chatbot = gr.Chatbot([], elem_id="chatbot", show_copy_button=True)
65
- with gr.Box():
66
  with gr.Row():
67
  image_input = gr.Image(label="Upload an image")
68
  task_input = gr.Radio(choices=["caption", "tag", "vqa"], value="caption", label="Select a task")
 
62
  # Define the Gradio interface
63
  with gr.Blocks() as demo:
64
  chatbot = gr.Chatbot([], elem_id="chatbot", show_copy_button=True)
65
+ with with gr.Group():
66
  with gr.Row():
67
  image_input = gr.Image(label="Upload an image")
68
  task_input = gr.Radio(choices=["caption", "tag", "vqa"], value="caption", label="Select a task")