radames commited on
Commit
30970e0
1 Parent(s): 8b1c135

pinned to 0.0.16

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ def predict(
94
  cosine_scale_2=1,
95
  cosine_scale_3=1,
96
  sigma=0.8,
97
- multi_decoder=False,
98
  show_image=False,
99
  lowvram=LOW_MEMORY,
100
  )
@@ -163,7 +163,7 @@ GPU Time Comparison: T4: ~276s - A10G: ~113.6s A100: ~43.5s RTX 4090: ~48.1s
163
  )
164
  btn = gr.Button()
165
  with gr.Column(scale=2):
166
- image_slider = ImageSlider()
167
  files = gr.Files()
168
  # inputs = [image_input, prompt, negative_prompt, seed, scale]
169
  inputs = [image_input, prompt, negative_prompt, seed]
 
94
  cosine_scale_2=1,
95
  cosine_scale_3=1,
96
  sigma=0.8,
97
+ multi_decoder=1024 * scale > 2048,
98
  show_image=False,
99
  lowvram=LOW_MEMORY,
100
  )
 
163
  )
164
  btn = gr.Button()
165
  with gr.Column(scale=2):
166
+ image_slider = ImageSlider(position=0.5)
167
  files = gr.Files()
168
  # inputs = [image_input, prompt, negative_prompt, seed, scale]
169
  inputs = [image_input, prompt, negative_prompt, seed]
requirements.txt CHANGED
@@ -10,4 +10,4 @@ accelerate
10
  invisible-watermark
11
  huggingface-hub
12
  hf-transfer
13
- https://huggingface.co/datasets/radames/gradio-components/resolve/main/gradio_imageslider-0.0.13-py3-none-any.whl
 
10
  invisible-watermark
11
  huggingface-hub
12
  hf-transfer
13
+ gradio_imageslider==0.0.16