Spaces:
Runtime error
Runtime error
anas-awadalla
commited on
Commit
·
db61bc8
1
Parent(s):
3c3d85f
added stuff
Browse files
app.py
CHANGED
@@ -105,23 +105,15 @@ def generate(
|
|
105 |
if idx != -1:
|
106 |
example_three_image = (
|
107 |
Image.open(demo_imgs[idx][2])
|
108 |
-
if example_three_image is None
|
109 |
-
else example_three_image
|
110 |
)
|
111 |
example_three_text = (
|
112 |
demo_texts[idx][2]
|
113 |
-
if example_three_text is None
|
114 |
-
else f"Output: {example_three_text}"
|
115 |
)
|
116 |
example_four_image = (
|
117 |
Image.open(demo_imgs[idx][3])
|
118 |
-
if example_four_image is None
|
119 |
-
else example_four_image
|
120 |
)
|
121 |
example_four_text = (
|
122 |
demo_texts[idx][3]
|
123 |
-
if example_four_text is None
|
124 |
-
else f"Output: {example_four_text}"
|
125 |
)
|
126 |
|
127 |
if (
|
|
|
105 |
if idx != -1:
|
106 |
example_three_image = (
|
107 |
Image.open(demo_imgs[idx][2])
|
|
|
|
|
108 |
)
|
109 |
example_three_text = (
|
110 |
demo_texts[idx][2]
|
|
|
|
|
111 |
)
|
112 |
example_four_image = (
|
113 |
Image.open(demo_imgs[idx][3])
|
|
|
|
|
114 |
)
|
115 |
example_four_text = (
|
116 |
demo_texts[idx][3]
|
|
|
|
|
117 |
)
|
118 |
|
119 |
if (
|