xpvwklvjp commited on
Commit
94bd637
·
verified ·
1 Parent(s): 6791de6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,7 +21,7 @@ with gr.Blocks() as demo:
21
  file_3.change(get_file_content, file_3, code)
22
 
23
  gr.Markdown("---")
24
- gr.Markdown('### `FileExplorer` to `Image` -- `file_count="single"`')
25
  with gr.Group():
26
  with gr.Row():
27
  file_4 = gr.FileExplorer(
@@ -32,7 +32,7 @@ with gr.Blocks() as demo:
32
 
33
  img = gr.Image(scale=2)
34
 
35
- file_4.change(get_file_content, file_3, img)
36
 
37
  if __name__ == "__main__":
38
- demo.launch()
 
21
  file_3.change(get_file_content, file_3, code)
22
 
23
  gr.Markdown("---")
24
+ gr.Markdown('### `FileExplorer` to `Image` "`')
25
  with gr.Group():
26
  with gr.Row():
27
  file_4 = gr.FileExplorer(
 
32
 
33
  img = gr.Image(scale=2)
34
 
35
+ file_4.change(get_file_content, file_4, img)
36
 
37
  if __name__ == "__main__":
38
+ demo.launch(debug=True)