Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ def delete_old_files():
|
|
140 |
os.remove(file_path)
|
141 |
time.sleep(600)
|
142 |
@spaces.GPU(duration=70)
|
143 |
-
def
|
144 |
if seed == -1:
|
145 |
seed = random.randint(0, 2**8 - 1)
|
146 |
|
@@ -338,7 +338,7 @@ with gr.Blocks() as demo:
|
|
338 |
|
339 |
|
340 |
generate_button.click(
|
341 |
-
|
342 |
inputs=[prompt, image_input, seed_param, enable_scale, enable_rife],
|
343 |
outputs=[video_output, download_video_button, download_gif_button, seed_text],
|
344 |
)
|
|
|
140 |
os.remove(file_path)
|
141 |
time.sleep(600)
|
142 |
@spaces.GPU(duration=70)
|
143 |
+
def plex(prompt,image_input,seed_value,scale_status,rife_status,progress=gr.Progress(track_tqdm=True)):
|
144 |
if seed == -1:
|
145 |
seed = random.randint(0, 2**8 - 1)
|
146 |
|
|
|
338 |
|
339 |
|
340 |
generate_button.click(
|
341 |
+
fn=plex,
|
342 |
inputs=[prompt, image_input, seed_param, enable_scale, enable_rife],
|
343 |
outputs=[video_output, download_video_button, download_gif_button, seed_text],
|
344 |
)
|