Spaces:
Runtime error
Runtime error
import os | |
import gradio as gr | |
os.environ["no_proxy"] = "localhost,127.0.0.1,::1" | |
info = open("details_info.html", "r", encoding="utf-8") | |
out = "" | |
for i in info: | |
out = out + str(i) | |
with gr.Blocks() as details: | |
with gr.Row(): | |
gr.HTML("详尽介绍") | |
with gr.Row(): | |
img_inputs = ["system.png", "flow.png"] | |
gr.Gallery( | |
img_inputs, | |
selected_index=0, | |
# label="点击图片查看详情", | |
# show_label=True, | |
) | |
with gr.Row(): | |
gr.HTML(out) | |
# 看上去还是不太能简单地进行文件输入啊,并且HTML比md方便 | |