Brian Gabini
commited on
Commit
·
84b97f5
1
Parent(s):
71bcdff
refactor: allow cached examples
Browse files- app.py +3 -2
- demo/3.jpg +0 -0
app.py
CHANGED
@@ -5,7 +5,8 @@ from exposure_enhancement import enhance_image_exposure
|
|
5 |
# inputs, fn, and ouputs
|
6 |
examples=[
|
7 |
["demo/1.jpg"],
|
8 |
-
["demo/2.bmp"]
|
|
|
9 |
]
|
10 |
|
11 |
def enhance_image(image, gamma=0.6, lambda_=0.15, sigma=3, lime=True, bc=1, bs=1, be=1, eps=1e-3):
|
@@ -29,6 +30,6 @@ with gr.Blocks() as demo:
|
|
29 |
btn = gr.ClearButton()
|
30 |
|
31 |
with gr.Row():
|
32 |
-
gr.Examples(examples=examples, inputs=inp)
|
33 |
|
34 |
demo.launch(share=True)
|
|
|
5 |
# inputs, fn, and ouputs
|
6 |
examples=[
|
7 |
["demo/1.jpg"],
|
8 |
+
["demo/2.bmp"],
|
9 |
+
["demo/3.jpg"],
|
10 |
]
|
11 |
|
12 |
def enhance_image(image, gamma=0.6, lambda_=0.15, sigma=3, lime=True, bc=1, bs=1, be=1, eps=1e-3):
|
|
|
30 |
btn = gr.ClearButton()
|
31 |
|
32 |
with gr.Row():
|
33 |
+
gr.Examples(examples=examples, inputs=inp, cache_examples=True)
|
34 |
|
35 |
demo.launch(share=True)
|
demo/3.jpg
ADDED
![]() |