LlamaIndexTest / app.py
ztla's picture
Update app.py
8dd0301 verified
import gradio as gr
# 定义要嵌入的外部网页的URL
external_url = "https://acc3a346b487dee93ea98197a132b593.serveo.net"
# 创建一个包含iframe标签的HTML字符串
iframe_html = f"""
<iframe src="{external_url}" height="600" width="100%" frameborder="0" allowfullscreen></iframe>
"""
# 创建一个Gradio界面
with gr.Blocks() as demo:
# 使用HTML组件显示iframe
html_component = gr.HTML(iframe_html)
# 启动Gradio应用
demo.launch()