Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
zwq2018
/
1234
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
392f1be
1234
/
app.py
zwq2018
Update app.py
ee03ae2
over 1 year ago
raw
Copy download link
history
blame
Safe
316 Bytes
import
gradio
as
gr
#输入文本处理程序
def
greet
(
name
):
return
"Hello "
+ name +
"!"
#接口创建函数
#fn设置处理函数,inputs设置输入接口组件,outputs设置输出接口组件
#fn,inputs,outputs都是必填函数
demo = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
demo.launch()