multimodalart HF staff commited on
Commit
26ca94f
1 Parent(s): 2b1e8e5

swap gallery for carousel for gr.interface.load compatibility

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -157,7 +157,8 @@ def run_all(prompt, steps, n_images, weight, clip_guided):
157
 
158
  ##################### START GRADIO HERE ############################
159
  #image = gr.outputs.Image(type="pil", label="Your result")
160
- gallery = gr.Gallery(css={"height": "256px","width":"256px"})
 
161
  iface = gr.Interface(
162
  fn=run_all,
163
  inputs=[
 
157
 
158
  ##################### START GRADIO HERE ############################
159
  #image = gr.outputs.Image(type="pil", label="Your result")
160
+ #gallery = gr.Gallery(css={"height": "256px","width":"256px"})
161
+ gallery = gr.outputs.Carousel(label="Individual images",components=["image"])
162
  iface = gr.Interface(
163
  fn=run_all,
164
  inputs=[