Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
xfu314
/
test
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
test
/
app.py
xfu314
error edit
b8e6904
5 days ago
raw
Copy download link
history
blame
contribute
delete
256 Bytes
import
gradio
as
gr
import
spaces
@spaces.GPU
def
greet
(
name
):
return
"Hello "
+ name +
"!!"
# 确保是这样写的
with
gr.Blocks()
as
demo:
# ... 你的组件 ...
pass
# 不要加 server_name 或 server_port,直接 launch
demo.launch()