Update src/app.py
Browse files- src/app.py +3 -3
src/app.py
CHANGED
@@ -168,7 +168,7 @@ def process(
|
|
168 |
return (input_image, enhanced_image)
|
169 |
|
170 |
|
171 |
-
with gr.Blocks() as demo:
|
172 |
gr.HTML(TITLE)
|
173 |
|
174 |
with gr.Row():
|
@@ -292,8 +292,8 @@ with gr.Blocks() as demo:
|
|
292 |
inputs=[input_image],
|
293 |
outputs=output_slider,
|
294 |
fn=process,
|
295 |
-
|
296 |
run_on_click=False,
|
297 |
)
|
298 |
|
299 |
-
demo.launch(
|
|
|
168 |
return (input_image, enhanced_image)
|
169 |
|
170 |
|
171 |
+
with gr.Blocks(delete_cache=(44000, 44000)) as demo:
|
172 |
gr.HTML(TITLE)
|
173 |
|
174 |
with gr.Row():
|
|
|
292 |
inputs=[input_image],
|
293 |
outputs=output_slider,
|
294 |
fn=process,
|
295 |
+
cache_mode="lazy",
|
296 |
run_on_click=False,
|
297 |
)
|
298 |
|
299 |
+
demo.launch(show_error=True, show_api=True)
|