Omnibus commited on
Commit
523f702
1 Parent(s): 26a7afe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -28,14 +28,17 @@ def load_model(model_drop):
28
  def run_dif(prompt,im_path,model_drop,cnt):
29
  print(f'im_path:: {im_path}')
30
  print(f'im_path0:: {im_path.root[0]}')
 
31
  out_box=[]
32
 
33
- for i,ea in im_path.path:
34
- print(f'ea:: {ea}')
35
- print(f'impath:: {im_path.path}')
36
- #url = base_url+ea
 
 
37
  #init_image = load_image(url)
38
- init_image=load_image(ea)
39
  #prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
40
 
41
  # pass prompt and image to pipeline
 
28
  def run_dif(prompt,im_path,model_drop,cnt):
29
  print(f'im_path:: {im_path}')
30
  print(f'im_path0:: {im_path.root[0]}')
31
+ print(f'im_path0.image.path:: {im_path.root[0].image.path}')
32
  out_box=[]
33
 
34
+ for i,ea in im_path.root:
35
+ print(f'root::{im_path.root[i]}')
36
+ #print(f'ea:: {ea}')
37
+ #print(f'impath:: {im_path.path}')
38
+ url = base_url+im_path.root[i].image.path
39
+ print(url)
40
  #init_image = load_image(url)
41
+ init_image=load_image(url)
42
  #prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
43
 
44
  # pass prompt and image to pipeline