Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,10 +29,10 @@ def run_dif(prompt,im_path,model_drop,cnt):
|
|
29 |
out_box=[]
|
30 |
|
31 |
for ea in im_path:
|
32 |
-
|
33 |
#url = base_url+ea
|
34 |
#init_image = load_image(url)
|
35 |
-
init_image=ea
|
36 |
#prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
37 |
|
38 |
# pass prompt and image to pipeline
|
@@ -185,7 +185,7 @@ with gr.Blocks(css=css) as app:
|
|
185 |
model_drop=gr.Dropdown(label="Models", choices=models, type='index', value=models[0])
|
186 |
cnt = gr.Number(value=1)
|
187 |
out_html=gr.HTML()
|
188 |
-
outp=gr.Gallery(columns=10)
|
189 |
fingal=gr.Gallery(columns=10)
|
190 |
im_list=gr.Textbox()
|
191 |
im_btn.click(load_im,inp_im,[outp,im_list])
|
|
|
29 |
out_box=[]
|
30 |
|
31 |
for ea in im_path:
|
32 |
+
print(f'ea:: {ea}')
|
33 |
#url = base_url+ea
|
34 |
#init_image = load_image(url)
|
35 |
+
init_image=load_image(ea)
|
36 |
#prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
37 |
|
38 |
# pass prompt and image to pipeline
|
|
|
185 |
model_drop=gr.Dropdown(label="Models", choices=models, type='index', value=models[0])
|
186 |
cnt = gr.Number(value=1)
|
187 |
out_html=gr.HTML()
|
188 |
+
outp=gr.Gallery(type='filepath',columns=10)
|
189 |
fingal=gr.Gallery(columns=10)
|
190 |
im_list=gr.Textbox()
|
191 |
im_btn.click(load_im,inp_im,[outp,im_list])
|