Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
34 |
-
print(f'
|
35 |
-
print(f'
|
36 |
-
#
|
|
|
|
|
37 |
#init_image = load_image(url)
|
38 |
-
init_image=load_image(
|
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
|