Update app.py
Browse files
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`
|
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,
|
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)
|