Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,11 @@ def infer(prompt,image):
|
|
14 |
512,
|
15 |
0,
|
16 |
fn_index=0)
|
17 |
-
|
18 |
-
print(
|
19 |
-
|
|
|
|
|
20 |
|
21 |
with gr.Blocks() as demo:
|
22 |
with gr.Column():
|
@@ -31,6 +33,6 @@ with gr.Blocks() as demo:
|
|
31 |
]
|
32 |
outputs = [gallery_out]
|
33 |
|
34 |
-
submit_btn.click(infer, inputs,
|
35 |
|
36 |
demo.launch().queue()
|
|
|
14 |
512,
|
15 |
0,
|
16 |
fn_index=0)
|
17 |
+
print(result)
|
18 |
+
print(result[0])
|
19 |
+
print(result[0][0])
|
20 |
+
return "done"
|
21 |
+
#return [os.path.join(result[0], img) for img in os.listdir(result[0])]
|
22 |
|
23 |
with gr.Blocks() as demo:
|
24 |
with gr.Column():
|
|
|
33 |
]
|
34 |
outputs = [gallery_out]
|
35 |
|
36 |
+
submit_btn.click(infer, inputs, text)
|
37 |
|
38 |
demo.launch().queue()
|