wushuang98 commited on
Commit
a6ce4c7
·
verified ·
1 Parent(s): cd51c20

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
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()