ahmedghani commited on
Commit
2d9cba6
Β·
1 Parent(s): 624a080

added image event updation

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -95,6 +95,7 @@ with demo:
95
  with gr.Row():
96
  output_image = gr.File(label="Output File", interactive=False)
97
  image_status = gr.Textbox(label="Status", interactive=False)
 
98
  image_format.change(lambda x: gr.Button.update(interactive=True), None, outputs=[image_convert_btn])
99
  image_convert_btn.click(convert_image, inputs=[input_image, image_format], outputs=[output_image, image_status])
100
  gr.Markdown("""## <center style="margin:20px;">Developed by Muhammad Ahmed<img src="https://avatars.githubusercontent.com/u/63394104?v=4" style="height:50px;width:50px;border-radius:50%;margin:5px;"></img></center>
 
95
  with gr.Row():
96
  output_image = gr.File(label="Output File", interactive=False)
97
  image_status = gr.Textbox(label="Status", interactive=False)
98
+ input_image.change(lambda x: gr.Radio.update(interactive=True), inputs=[input_image], outputs=[image_format])
99
  image_format.change(lambda x: gr.Button.update(interactive=True), None, outputs=[image_convert_btn])
100
  image_convert_btn.click(convert_image, inputs=[input_image, image_format], outputs=[output_image, image_status])
101
  gr.Markdown("""## <center style="margin:20px;">Developed by Muhammad Ahmed<img src="https://avatars.githubusercontent.com/u/63394104?v=4" style="height:50px;width:50px;border-radius:50%;margin:5px;"></img></center>