Spaces:
Runtime error

Exp2 / app1.py
mihozzv's picture
Update app1.py
0e9f1c8 verified
Raw History Blame Contribute Delete
766 Bytes
import os
from pathlib import Path
import gradio as gr
p = Path("a/1.jpg")
with gr.Blocks() as demo:
gr.HTML("<img src='https://img.freepik.com/free-vector/colorful-letter-gradient-logo-design_474888-2309.jpg'>")
gr.HTML("<img src='/gradio_api/file=1/11.png'>")
gr.FileExplorer(root_dir="../../..", file_count="single")
gr.HTML("<img src='/home/user/app/11.png'>")
gr.HTML("<img src='a/1.jpg'>")
gr.HTML("<img src='./a/1.jpg'>")
gr.HTML("<img src='p'>")
gr.HTML("<img src='./1/11.png'>")
gr.HTML("<img src='/gradio_api/file=1/11.png'>")
gr.HTML("<img src='/gradio_api/file=p'>")
gr.HTML("<img src='/gradio_api/file=/1/11.png'>")
gr.HTML("<img src='/gradio_api/file=./a/1.jpg'>")
demo.launch(allowed_paths="")