Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
gregtsen
/
greg
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
greg
/
app.py
gregtsen
Update app.py
b8c209a
almost 3 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
191 Bytes
import
gradio
as
gr
gr.Interface.load(
"models/gpt2"
).launch()
def
greet
(
name
):
return
"Hello "
+ name +
"!!"
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch()