Ashoka74 commited on
Commit
276cbb8
·
verified ·
1 Parent(s): 36cabaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -176,6 +176,9 @@ Generate 768x768 multi-view images from a single image using SDXL <br>
176
  value="watermark, ugly, deformed, noisy, blurry, low contrast",
177
  )
178
 
 
 
 
179
  with gr.Column():
180
  result = gr.Gallery(
181
  label="Result",
@@ -186,6 +189,11 @@ Generate 768x768 multi-view images from a single image using SDXL <br>
186
  height="auto",
187
  )
188
 
 
 
 
 
 
189
  # with gr.Row():
190
  # gr.Examples(
191
  # examples=examples,
 
176
  value="watermark, ugly, deformed, noisy, blurry, low contrast",
177
  )
178
 
179
+ def use_orientation(selected_image:gr.SelectData):
180
+ return selected_image.value
181
+
182
  with gr.Column():
183
  result = gr.Gallery(
184
  label="Result",
 
189
  height="auto",
190
  )
191
 
192
+ if result:
193
+ input_fg = gr.Image(type="numpy", label="Selected Image", height=480)
194
+ result.select(use_orientation, result, input_fg)
195
+
196
+
197
  # with gr.Row():
198
  # gr.Examples(
199
  # examples=examples,