Update app.py
Browse files
app.py
CHANGED
@@ -120,22 +120,21 @@ with gr.Blocks(css=custom_css) as interface:
|
|
120 |
with gr.Tabs():
|
121 |
with gr.Tab("Home"):
|
122 |
gr.Markdown("Welcome to the **AI Phone Cover Designer**! Below are some of your saved designs.")
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
# Button to refresh gallery
|
128 |
refresh_button = gr.Button("Refresh Gallery")
|
129 |
-
|
130 |
def refresh_gallery():
|
131 |
return fetch_saved_designs()
|
132 |
-
|
133 |
refresh_button.click(
|
134 |
refresh_gallery,
|
135 |
inputs=[],
|
136 |
outputs=[saved_images_gallery]
|
137 |
)
|
138 |
|
|
|
139 |
with gr.Tab("Design"):
|
140 |
with gr.Row():
|
141 |
with gr.Column(scale=1):
|
|
|
120 |
with gr.Tabs():
|
121 |
with gr.Tab("Home"):
|
122 |
gr.Markdown("Welcome to the **AI Phone Cover Designer**! Below are some of your saved designs.")
|
123 |
+
|
124 |
+
saved_images_gallery = gr.Gallery(label="Saved Designs", show_label=True)
|
125 |
+
|
|
|
|
|
126 |
refresh_button = gr.Button("Refresh Gallery")
|
127 |
+
|
128 |
def refresh_gallery():
|
129 |
return fetch_saved_designs()
|
130 |
+
|
131 |
refresh_button.click(
|
132 |
refresh_gallery,
|
133 |
inputs=[],
|
134 |
outputs=[saved_images_gallery]
|
135 |
)
|
136 |
|
137 |
+
|
138 |
with gr.Tab("Design"):
|
139 |
with gr.Row():
|
140 |
with gr.Column(scale=1):
|