test
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'''
|
2 |
+
Author: zuojianghua
|
3 |
+
Date: 2022-07-06 10:40:08
|
4 |
+
LastEditTime: 2022-07-06 10:40:13
|
5 |
+
LastEditors: zuojianghua
|
6 |
+
Description:
|
7 |
+
FilePath: /zuo/app.py
|
8 |
+
'''
|
9 |
+
import gradio as gr
|
10 |
+
|
11 |
+
def greet(name):
|
12 |
+
return "Hello " + name + "!!"
|
13 |
+
|
14 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
15 |
+
iface.launch()
|