File size: 628 Bytes
7950af4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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方便