| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| html_text = """<iframe src="https://ccnl.fengshenbang-lm.com/demo/888888/" title="outer_frame" width="100%" height="1000px" frameborder="0"></iframe>""" | |
| def web(html_text): | |
| return gr.HTML(html_text) | |
| # iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| # iface.launch() | |
| with gr.Blocks() as demo: | |
| # with gr.Tab("Lion"): | |
| gr.HTML(html_text) | |
| # demo = gr.TabbedInterface([taiyi_demo], ["Text-to-speech"]) | |
| demo.launch(show_api=False) |