doevent commited on
Commit
be5347c
·
verified ·
1 Parent(s): c960286

Update src/app.py

Browse files
Files changed (1) hide show
  1. 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
- cache_examples="lazy",
296
  run_on_click=False,
297
  )
298
 
299
- demo.launch(share=False)
 
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)