Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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...",
|