Spaces:
Sleeping
Sleeping
Commit
·
d2d5b28
1
Parent(s):
bbcbb1a
initial commit
Browse files- hello_gradio.py +12 -0
hello_gradio.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name):
|
4 |
+
return "Hello, glad to have you here! " + name + "If any questions or idea, feel free to leave comments or send email to hexiyu@hexiyu2022.com!"
|
5 |
+
|
6 |
+
demo = gr.Interface(
|
7 |
+
fn=greet,
|
8 |
+
inputs=gr.Textbox(lines=3, placeholder="Type in what you want to say"),
|
9 |
+
outputs="text",
|
10 |
+
)
|
11 |
+
|
12 |
+
demo.launch(share=True)
|