Omnibus commited on
Commit
0b5c615
1 Parent(s): 3bb9701

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -26,11 +26,12 @@ def load_model(model_drop):
26
  pipeline = AutoPipelineForImage2Image.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float32, use_safetensors=True)
27
 
28
  def run_dif(prompt,im_path,model_drop,cnt):
 
29
  out_box=[]
30
 
31
- for i,ea in im_path:
32
  print(f'ea:: {ea}')
33
- print(f'impath:: {im_path[0]}')
34
  #url = base_url+ea
35
  #init_image = load_image(url)
36
  init_image=load_image(ea)
 
26
  pipeline = AutoPipelineForImage2Image.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float32, use_safetensors=True)
27
 
28
  def run_dif(prompt,im_path,model_drop,cnt):
29
+ print(f'im_path:: {im_path}')
30
  out_box=[]
31
 
32
+ for i,ea in im_path[0]:
33
  print(f'ea:: {ea}')
34
+ print(f'impath:: {im_path[0][i]}')
35
  #url = base_url+ea
36
  #init_image = load_image(url)
37
  init_image=load_image(ea)