Spaces:
Runtime error
Runtime error
code update
Browse files
app.py
CHANGED
@@ -277,16 +277,7 @@ def image_generator(prompt = "dog", loss_function=None):
|
|
277 |
|
278 |
return display_images_in_rows(generated_sd_images, titles)
|
279 |
|
280 |
-
|
281 |
-
def image_generator_wrapper(prompt = "dog", loss_function=None):
|
282 |
-
if loss_function == "Yes":
|
283 |
-
loss_function = vibrance_loss
|
284 |
-
else:
|
285 |
-
loss_function = None
|
286 |
-
|
287 |
-
return image_generator(prompt, loss_function)
|
288 |
-
|
289 |
-
description = "Generate an image with a prompt and apply vibrance loss if you wish to. Note that the app is hosted on a cpu and the inference steps are reduced to 1 to produce results faster at the cost of accuracy of generated images."
|
290 |
|
291 |
demo = gr.Interface(image_generator,
|
292 |
inputs=[gr.Textbox(label="Enter prompt for generation", type="text", value="dog sitting on a bench"),
|
|
|
277 |
|
278 |
return display_images_in_rows(generated_sd_images, titles)
|
279 |
|
280 |
+
description = "Generate an image with a prompt and apply vibrance loss if you wish to. Note that the app is hosted on a cpu and it takes atleast 15 minutes for generating images without loss"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
demo = gr.Interface(image_generator,
|
283 |
inputs=[gr.Textbox(label="Enter prompt for generation", type="text", value="dog sitting on a bench"),
|