Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,6 @@ with gr.Blocks(theme=gr.themes.Citrus()) as demo:
|
|
| 58 |
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' />")
|
| 59 |
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>")
|
| 60 |
|
| 61 |
-
login_button = gr.LoginButton()
|
| 62 |
pro_message = gr.Markdown(visible=False)
|
| 63 |
main_interface = gr.Column(visible=False)
|
| 64 |
|
|
@@ -88,6 +87,8 @@ with gr.Blocks(theme=gr.themes.Citrus()) as demo:
|
|
| 88 |
output_image = gr.Image(label="Output", interactive=False)
|
| 89 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
| 90 |
|
|
|
|
|
|
|
| 91 |
# --- Event Handlers ---
|
| 92 |
def unified_generator(
|
| 93 |
prompt: str,
|
|
|
|
| 58 |
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' />")
|
| 59 |
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>")
|
| 60 |
|
|
|
|
| 61 |
pro_message = gr.Markdown(visible=False)
|
| 62 |
main_interface = gr.Column(visible=False)
|
| 63 |
|
|
|
|
| 87 |
output_image = gr.Image(label="Output", interactive=False)
|
| 88 |
use_image_button = gr.Button("♻️ Use this Image for Next Edit")
|
| 89 |
|
| 90 |
+
login_button = gr.LoginButton()
|
| 91 |
+
|
| 92 |
# --- Event Handlers ---
|
| 93 |
def unified_generator(
|
| 94 |
prompt: str,
|