Brian Gabini
commited on
Commit
·
e274eca
1
Parent(s):
84b97f5
fix: incomplete params
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
|
|
2 |
# project
|
3 |
from exposure_enhancement import enhance_image_exposure
|
4 |
|
5 |
-
# inputs, fn, and ouputs
|
6 |
examples=[
|
7 |
["demo/1.jpg"],
|
8 |
["demo/2.bmp"],
|
@@ -15,8 +14,6 @@ def enhance_image(image, gamma=0.6, lambda_=0.15, sigma=3, lime=True, bc=1, bs=1
|
|
15 |
|
16 |
return enhanced_image
|
17 |
|
18 |
-
def update(name):
|
19 |
-
return f"Welcome to Gradio, {name}!"
|
20 |
|
21 |
with gr.Blocks() as demo:
|
22 |
gr.Markdown("Input an image below then click **Run** or use the cached examples for quick results. For quicker processing (typically 1-2 minutes), it's suggested to use low-exposure images of 500x500 pixels.")
|
@@ -30,6 +27,6 @@ with gr.Blocks() as demo:
|
|
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)
|
|
|
2 |
# project
|
3 |
from exposure_enhancement import enhance_image_exposure
|
4 |
|
|
|
5 |
examples=[
|
6 |
["demo/1.jpg"],
|
7 |
["demo/2.bmp"],
|
|
|
14 |
|
15 |
return enhanced_image
|
16 |
|
|
|
|
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
gr.Markdown("Input an image below then click **Run** or use the cached examples for quick results. For quicker processing (typically 1-2 minutes), it's suggested to use low-exposure images of 500x500 pixels.")
|
|
|
27 |
btn = gr.ClearButton()
|
28 |
|
29 |
with gr.Row():
|
30 |
+
gr.Examples(examples=examples, fn=enhance_image,inputs=inp, outputs=out, cache_examples=True)
|
31 |
|
32 |
demo.launch(share=True)
|