Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def run_multi_image_logic(prompt: str, images: List[str]) -> str:
|
|
| 64 |
return last_image_url
|
| 65 |
|
| 66 |
# --- Gradio App UI ---
|
| 67 |
-
with gr.Blocks(theme=gr.themes.
|
| 68 |
gr.HTML("<h1 style='text-align:center'>Nano Banana for PROs</h1>")
|
| 69 |
gr.Markdown("Hugging Face PRO users can use Google's Nano Banana (Gemini 2.5 Flash Image Preview) on this Space. [Subscribe to PRO](https://huggingface.co/pro)")
|
| 70 |
|
|
@@ -86,17 +86,17 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 86 |
with gr.TabItem("Single Image", id="single") as single_tab:
|
| 87 |
image_input = gr.Image(
|
| 88 |
type="filepath",
|
| 89 |
-
label="Input Image (
|
| 90 |
)
|
| 91 |
with gr.TabItem("Multiple Images", id="multiple") as multi_tab:
|
| 92 |
gallery_input = gr.Gallery(
|
| 93 |
-
label="Input Images", file_types=["image"]
|
| 94 |
)
|
| 95 |
generate_button = gr.Button("Generate", variant="primary")
|
| 96 |
|
| 97 |
# RIGHT COLUMN: Outputs
|
| 98 |
with gr.Column(scale=1):
|
| 99 |
-
output_image = gr.Image(label="Output")
|
| 100 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
| 101 |
|
| 102 |
# --- Event Handlers ---
|
|
|
|
| 64 |
return last_image_url
|
| 65 |
|
| 66 |
# --- Gradio App UI ---
|
| 67 |
+
with gr.Blocks(theme=gr.themes.Citrus()) as demo:
|
| 68 |
gr.HTML("<h1 style='text-align:center'>Nano Banana for PROs</h1>")
|
| 69 |
gr.Markdown("Hugging Face PRO users can use Google's Nano Banana (Gemini 2.5 Flash Image Preview) on this Space. [Subscribe to PRO](https://huggingface.co/pro)")
|
| 70 |
|
|
|
|
| 86 |
with gr.TabItem("Single Image", id="single") as single_tab:
|
| 87 |
image_input = gr.Image(
|
| 88 |
type="filepath",
|
| 89 |
+
label="Input Image (Leave blank for text-to-image)"
|
| 90 |
)
|
| 91 |
with gr.TabItem("Multiple Images", id="multiple") as multi_tab:
|
| 92 |
gallery_input = gr.Gallery(
|
| 93 |
+
label="Input Images (drop all images here)", file_types=["image"]
|
| 94 |
)
|
| 95 |
generate_button = gr.Button("Generate", variant="primary")
|
| 96 |
|
| 97 |
# RIGHT COLUMN: Outputs
|
| 98 |
with gr.Column(scale=1):
|
| 99 |
+
output_image = gr.Image(label="Output", interactive=False)
|
| 100 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
| 101 |
|
| 102 |
# --- Event Handlers ---
|