multimodalart HF Staff commited on
Commit
38c9785
·
verified ·
1 Parent(s): b9a1898

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -109,7 +109,11 @@ pipe.unet.to('cuda')
109
  with gr.Blocks(title="BLIP3-o") as demo:
110
  with gr.Row():
111
  with gr.Column(scale=2):
112
- image_input = gr.Image(label="Input Image (optional)", type="pil")
 
 
 
 
113
  prompt_input = gr.Textbox(
114
  label="Prompt",
115
  placeholder="Describe the image you want...",
 
109
  with gr.Blocks(title="BLIP3-o") as demo:
110
  with gr.Row():
111
  with gr.Column(scale=2):
112
+ gr.Tab("Image → Text (Image Understanding)"):
113
+ pass
114
+ gr.Tab("Text → Image (Image Generation)"):
115
+ image_input = gr.Image(label="Input Image (optional)", type="pil")
116
+
117
  prompt_input = gr.Textbox(
118
  label="Prompt",
119
  placeholder="Describe the image you want...",