gaur3009 commited on
Commit
dfc3114
·
verified ·
1 Parent(s): 78b6f06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
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
- # Gallery to display saved designs
125
- saved_images_gallery = gr.Gallery(label="Saved Designs").style(grid=[2], height="400px")
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):