Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def dummy_function(input_text):
|
4 |
+
return f"You entered: {input_text}"
|
5 |
+
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=dummy_function,
|
8 |
+
inputs="text",
|
9 |
+
outputs="text",
|
10 |
+
)
|
11 |
+
|
12 |
+
iframe_html = """
|
13 |
+
<iframe src="https://animeit.cn/" width="600" height="400" frameborder="0"></iframe>
|
14 |
+
"""
|
15 |
+
iface.add_component(gr.HTML(iframe_html))
|
16 |
+
|
17 |
+
iface.launch()
|