Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
DesignAndProd
/
my-space
like
0
Runtime error
App
Files
Files
Community
d58aa3a
my-space
/
app.py
rewebution
fix: type with gradio_interface
d58aa3a
almost 2 years ago
raw
Copy download link
history
blame
Safe
229 Bytes
import
gradio
def
my_inference_function
(
name
):
return
"Hello "
+ name
gradio_interface = gradio.Interface(
fn=my_inference_function,
inputs=
"text"
,
outputs=
"text"
,
)
gradio_interface.launch()