Update app.py
Browse files
app.py
CHANGED
@@ -73,10 +73,10 @@ html_content = """
|
|
73 |
"""
|
74 |
|
75 |
# 创建 Gradio 界面
|
76 |
-
def get_html():
|
77 |
return html_content
|
78 |
|
79 |
-
iface = gr.Interface(fn=get_html, outputs=gr.HTML(), title="个人简介页面")
|
80 |
|
81 |
# 启动应用
|
82 |
iface.launch()
|
|
|
73 |
"""
|
74 |
|
75 |
# 创建 Gradio 界面
|
76 |
+
def get_html(input_text):
|
77 |
return html_content
|
78 |
|
79 |
+
iface = gr.Interface(fn=get_html, inputs="text", outputs=gr.HTML(), title="个人简介页面")
|
80 |
|
81 |
# 启动应用
|
82 |
iface.launch()
|