Spaces:
Paused
Paused
Update app_gradio.py
Browse files- app_gradio.py +4 -3
app_gradio.py
CHANGED
@@ -200,8 +200,9 @@ def generate_output(image, prompt: str, num_seeds: int = 3, lambda_value: float
|
|
200 |
|
201 |
return filtered_gifs
|
202 |
|
203 |
-
def generate_output_from_sketchpad(image, prompt,
|
204 |
-
|
|
|
205 |
return results
|
206 |
|
207 |
css=""" """
|
@@ -250,7 +251,7 @@ def create_gradio_interface():
|
|
250 |
type="pil",
|
251 |
image_mode="RGB",
|
252 |
layers=False,
|
253 |
-
|
254 |
)
|
255 |
sketchpad_generate_btn = gr.Button(
|
256 |
"Generate Animation",
|
|
|
200 |
|
201 |
return filtered_gifs
|
202 |
|
203 |
+
def generate_output_from_sketchpad(image, prompt: str, num_seeds: int = 3, lambda_value: float = 0.5, progress=gr.Progress(track_tqdm=True)):
|
204 |
+
image = image['composite']
|
205 |
+
results = generate_output(image, prompt, num_seed, lambda_value)
|
206 |
return results
|
207 |
|
208 |
css=""" """
|
|
|
251 |
type="pil",
|
252 |
image_mode="RGB",
|
253 |
layers=False,
|
254 |
+
|
255 |
)
|
256 |
sketchpad_generate_btn = gr.Button(
|
257 |
"Generate Animation",
|