Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
#adding fallback fal_key
|
| 2 |
import gradio as gr
|
| 3 |
from gradio_image_annotation import image_annotator
|
| 4 |
import fal_client
|
|
@@ -149,7 +148,7 @@ def process_images(annotated_image, second_image, user_api_key=None, progress=gr
|
|
| 149 |
|
| 150 |
|
| 151 |
# Create the Gradio interface
|
| 152 |
-
with gr.Blocks(theme="
|
| 153 |
gr.HTML(
|
| 154 |
"""
|
| 155 |
<h1><center>🎨 Grounded Nano Banana App</center></h1>
|
|
@@ -193,7 +192,7 @@ with gr.Blocks(theme="default") as demo:
|
|
| 193 |
first_image = image_annotator(
|
| 194 |
#value=None,
|
| 195 |
label="Draw a box where you want to place the object",
|
| 196 |
-
|
| 197 |
single_box=True, # Only allow one box
|
| 198 |
disable_edit_boxes=False,
|
| 199 |
show_download_button=False,
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio_image_annotation import image_annotator
|
| 3 |
import fal_client
|
|
|
|
| 148 |
|
| 149 |
|
| 150 |
# Create the Gradio interface
|
| 151 |
+
with gr.Blocks(theme="ocean") as demo:
|
| 152 |
gr.HTML(
|
| 153 |
"""
|
| 154 |
<h1><center>🎨 Grounded Nano Banana App</center></h1>
|
|
|
|
| 192 |
first_image = image_annotator(
|
| 193 |
#value=None,
|
| 194 |
label="Draw a box where you want to place the object",
|
| 195 |
+
image_type="pil",
|
| 196 |
single_box=True, # Only allow one box
|
| 197 |
disable_edit_boxes=False,
|
| 198 |
show_download_button=False,
|