王闯
commited on
Commit
•
d672021
1
Parent(s):
5ee7e0d
add app.py file
Browse files- .gitignore +2 -0
- app.py +6 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
.idea
|
2 |
+
.vscode
|
app.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
def greet(name):
|
3 |
+
return "Hello " + name + "!!"
|
4 |
+
|
5 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
6 |
+
iface.launch()
|