| import gradio as gr | |
| def dummy_function(input_text): | |
| return f"You entered: {input_text}" | |
| iface = gr.Interface( | |
| fn=dummy_function, | |
| inputs="text", | |
| outputs="text", | |
| ) | |
| iframe_html = """ | |
| <iframe src="https://animeit.cn/" width="600" height="400" frameborder="0"></iframe> | |
| """ | |
| iface.add_component(gr.HTML(iframe_html)) | |
| iface.launch() |