Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,11 @@ def run_multi_image_logic(prompt: str, images: List[str]) -> str:
|
|
55 |
|
56 |
# --- Gradio App UI ---
|
57 |
css = '''
|
58 |
-
#sub_title{margin-top: -35px !important}
|
|
|
|
|
|
|
|
|
59 |
with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
60 |
gr.HTML("<img src='https://huggingface.co/spaces/multimodalart/nano-banana/resolve/main/nano_banana_pros.png' style='display: block; margin: 0 auto; max-width: 500px' />")
|
61 |
gr.HTML("<h3 style='text-align:center'>Hugging Face PRO users can use Google's Nano Banana (Gemini 2.5 Flash Image Preview) on this Space. <a href='https://huggingface.co/pro' target='_blank'>Subscribe to PRO</a></h3>", elem_id="sub_title")
|
@@ -85,7 +89,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
85 |
generate_button = gr.Button("Generate", variant="primary")
|
86 |
|
87 |
with gr.Column(scale=1):
|
88 |
-
output_image = gr.Image(label="Output", interactive=False)
|
89 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
90 |
gr.Markdown("## Thank you for being a PRO! 🤗")
|
91 |
|
|
|
55 |
|
56 |
# --- Gradio App UI ---
|
57 |
css = '''
|
58 |
+
#sub_title{margin-top: -35px !important}
|
59 |
+
.tab-wrapper{margin-bottom: -33px !important}
|
60 |
+
.tabitem{padding: 0px !important}
|
61 |
+
#output{margin-top: 25px}
|
62 |
+
'''
|
63 |
with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
64 |
gr.HTML("<img src='https://huggingface.co/spaces/multimodalart/nano-banana/resolve/main/nano_banana_pros.png' style='display: block; margin: 0 auto; max-width: 500px' />")
|
65 |
gr.HTML("<h3 style='text-align:center'>Hugging Face PRO users can use Google's Nano Banana (Gemini 2.5 Flash Image Preview) on this Space. <a href='https://huggingface.co/pro' target='_blank'>Subscribe to PRO</a></h3>", elem_id="sub_title")
|
|
|
89 |
generate_button = gr.Button("Generate", variant="primary")
|
90 |
|
91 |
with gr.Column(scale=1):
|
92 |
+
output_image = gr.Image(label="Output", interactive=False, elem_id="output")
|
93 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
94 |
gr.Markdown("## Thank you for being a PRO! 🤗")
|
95 |
|