Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,7 +212,7 @@ with gr.Blocks(title="Video Face Swap", theme=gr.themes.Soft(), css=CUSTOM_CSS)
|
|
| 212 |
inputs=[in_img, in_vid, in_gen],
|
| 213 |
outputs=[out_vid],
|
| 214 |
fn=generate, # precompute + cache example output
|
| 215 |
-
cache_examples=
|
| 216 |
run_on_click=True, # clicking the example triggers generate()
|
| 217 |
label="Try an example"
|
| 218 |
)
|
|
|
|
| 212 |
inputs=[in_img, in_vid, in_gen],
|
| 213 |
outputs=[out_vid],
|
| 214 |
fn=generate, # precompute + cache example output
|
| 215 |
+
cache_examples=False, # store the result on build so it loads instantly
|
| 216 |
run_on_click=True, # clicking the example triggers generate()
|
| 217 |
label="Try an example"
|
| 218 |
)
|