Spaces:
Running
on
Zero
Running
on
Zero
main
Browse files- gradio_app.py +1 -0
gradio_app.py
CHANGED
@@ -106,6 +106,7 @@ class ResizeWithPadding:
|
|
106 |
return img
|
107 |
|
108 |
# The function to generate image from a prompt and conditional image
|
|
|
109 |
def infer(prompt, sample_image, frame_num, seed=0, randomize_seed=False):
|
110 |
logger.info(f"Started generating image with prompt: {prompt}")
|
111 |
|
|
|
106 |
return img
|
107 |
|
108 |
# The function to generate image from a prompt and conditional image
|
109 |
+
@spaces.GPU(duration=180)
|
110 |
def infer(prompt, sample_image, frame_num, seed=0, randomize_seed=False):
|
111 |
logger.info(f"Started generating image with prompt: {prompt}")
|
112 |
|