Spaces:
Runtime error
Runtime error
Fix caching
Browse files
app.py
CHANGED
|
@@ -165,7 +165,8 @@ with gr.Blocks() as app:
|
|
| 165 |
inputs=input_image,
|
| 166 |
outputs=output_latcomp,
|
| 167 |
fn=image_to_latcomp,
|
| 168 |
-
|
|
|
|
| 169 |
)
|
| 170 |
|
| 171 |
with gr.Tab("Decompression"):
|
|
@@ -182,7 +183,8 @@ with gr.Blocks() as app:
|
|
| 182 |
inputs=input_latcomp,
|
| 183 |
outputs=output_image,
|
| 184 |
fn=latcomp_to_image,
|
| 185 |
-
|
|
|
|
| 186 |
)
|
| 187 |
|
| 188 |
clear_compress_button.add([input_image, output_latcomp])
|
|
|
|
| 165 |
inputs=input_image,
|
| 166 |
outputs=output_latcomp,
|
| 167 |
fn=image_to_latcomp,
|
| 168 |
+
cache_examples=True,
|
| 169 |
+
cache_mode="eager"
|
| 170 |
)
|
| 171 |
|
| 172 |
with gr.Tab("Decompression"):
|
|
|
|
| 183 |
inputs=input_latcomp,
|
| 184 |
outputs=output_image,
|
| 185 |
fn=latcomp_to_image,
|
| 186 |
+
cache_examples=True,
|
| 187 |
+
cache_mode="eager"
|
| 188 |
)
|
| 189 |
|
| 190 |
clear_compress_button.add([input_image, output_latcomp])
|