Brian Gabini commited on
Commit
71bcdff
·
1 Parent(s): cd39380

feat: change image upload method

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def update(name):
20
  with gr.Blocks() as demo:
21
  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.")
22
  with gr.Row():
23
- inp = gr.Image(label="Input Image", type="numpy")
24
  out = gr.Image(label="Enhanced Image", type="numpy")
25
 
26
  with gr.Row():
 
20
  with gr.Blocks() as demo:
21
  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.")
22
  with gr.Row():
23
+ inp = gr.Image(label="Input Image", type="numpy", sources=["upload"])
24
  out = gr.Image(label="Enhanced Image", type="numpy")
25
 
26
  with gr.Row():