gudada commited on
Commit
4b2e5b7
·
verified ·
1 Parent(s): 9c65063

Rename gradio_app.py to app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py → app.py +2 -4
gradio_app.py → app.py RENAMED
@@ -104,7 +104,7 @@ def colorize(img):
104
  #unique_imgfilename = str(uuid.uuid4()) + '.png'
105
  unique_imgfilename = "result.png"
106
  cv2.imwrite(unique_imgfilename, image_out)
107
- return (img, unique_imgfilename,unique_imgfilename)
108
 
109
 
110
  # Gradio demo using the Image-Slider custom component
@@ -116,9 +116,7 @@ with gr.Blocks() as demo:
116
  with gr.Column():
117
  col_image_slider = ImageSlider(position=0.5,
118
  label='Colored Image with Slider-view')
119
- with gr.Column():
120
- dl = gr.File(label="Download the output image")
121
 
122
 
123
- btn.click(colorize, bw_image, col_image_slider,dl)
124
  demo.launch()
 
104
  #unique_imgfilename = str(uuid.uuid4()) + '.png'
105
  unique_imgfilename = "result.png"
106
  cv2.imwrite(unique_imgfilename, image_out)
107
+ return (img, unique_imgfilename)
108
 
109
 
110
  # Gradio demo using the Image-Slider custom component
 
116
  with gr.Column():
117
  col_image_slider = ImageSlider(position=0.5,
118
  label='Colored Image with Slider-view')
 
 
119
 
120
 
121
+ btn.click(colorize, bw_image, col_image_slider)
122
  demo.launch()