Spaces:
Runtime error
Runtime error
Commit
·
c357672
1
Parent(s):
e2c9322
Update app.py
Browse files
app.py
CHANGED
|
@@ -324,11 +324,11 @@ def image_generator(prompt="cat", loss_function=None):
|
|
| 324 |
titles = ["animal toy", "fft style", "mid journey", "oil style", "Space style"]
|
| 325 |
|
| 326 |
for i in range(len(titles)):
|
| 327 |
-
generated_sd_images.append((images_without_loss[i], titles[i]))
|
| 328 |
-
if images_with_loss:
|
| 329 |
-
|
| 330 |
|
| 331 |
-
return generated_sd_images
|
| 332 |
|
| 333 |
# Create a wrapper function for image_generator()
|
| 334 |
def image_generator_wrapper(prompt="dog", selected_loss="None"):
|
|
|
|
| 324 |
titles = ["animal toy", "fft style", "mid journey", "oil style", "Space style"]
|
| 325 |
|
| 326 |
for i in range(len(titles)):
|
| 327 |
+
generated_sd_images.append((images_without_loss[i], titles[i]))
|
| 328 |
+
if images_with_loss != []:
|
| 329 |
+
generated_sd_images.append((images_with_loss[i], titles[i]))
|
| 330 |
|
| 331 |
+
return display_images_in_rows(generated_sd_images, titles)
|
| 332 |
|
| 333 |
# Create a wrapper function for image_generator()
|
| 334 |
def image_generator_wrapper(prompt="dog", selected_loss="None"):
|