John6666 commited on
Commit
9673977
·
verified ·
1 Parent(s): aaefe90

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import numpy as np
3
  import random
4
  import spaces
5
  import torch
6
- from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler, AutoencoderTiny, AutoencoderKL
7
  from transformers import CLIPTextModel, CLIPTokenizer,T5EncoderModel, T5TokenizerFast
8
  from live_preview_helpers import calculate_shift, retrieve_timesteps, flux_pipe_call_that_returns_an_iterable_of_images
9
  from gradio_imageslider import ImageSlider
@@ -102,7 +102,7 @@ with gr.Blocks(css=css) as demo:
102
 
103
  #result = gr.Image(label="Result", show_label=False)
104
  result = ImageSlider(label="Result", show_label=False, type="pil", slider_color="pink", format="png")
105
- result_cmp = gr.Image(label="Result (comparing)", show_label=False, type="pil", format="png", height=256)
106
 
107
  with gr.Accordion("Advanced Settings", open=True):
108
  with gr.Row():
 
3
  import random
4
  import spaces
5
  import torch
6
+ from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler, AutoencoderTiny, AutoencoderKL
7
  from transformers import CLIPTextModel, CLIPTokenizer,T5EncoderModel, T5TokenizerFast
8
  from live_preview_helpers import calculate_shift, retrieve_timesteps, flux_pipe_call_that_returns_an_iterable_of_images
9
  from gradio_imageslider import ImageSlider
 
102
 
103
  #result = gr.Image(label="Result", show_label=False)
104
  result = ImageSlider(label="Result", show_label=False, type="pil", slider_color="pink", format="png")
105
+ result_cmp = gr.Image(label="Result (comparing)", show_label=False, type="pil", format="png", height=256, show_download_button=True, show_share_button=False)
106
 
107
  with gr.Accordion("Advanced Settings", open=True):
108
  with gr.Row():
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  accelerate
2
  #git+https://github.com/huggingface/diffusers.git
3
- #git+https://github.com/huggingface/diffusers.git@6b1c4a766b7f83fe06ddb9bbb58c1122072efefegit+https://github.com/John6666cat/diffusers@df825b66433dfb6d7129d9ff1b3a464aafa3a77a
4
  torch
5
  transformers==4.42.4
6
  xformers
 
1
  accelerate
2
  #git+https://github.com/huggingface/diffusers.git
3
+ #git+https://github.com/huggingface/diffusers.git@6b1c4a766b7f83fe06ddb9bbb58c1122072efefegit+https://github.com/John6666cat/diffusers@patch-3
4
  torch
5
  transformers==4.42.4
6
  xformers