Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
rin2401
/
quote
like
0
Runtime error
App
Files
Files
Community
35081a2
quote
/
app.py
rin2401
Get random quote
35081a2
about 2 years ago
raw
Copy download link
history
blame
Safe
211 Bytes
import
gradio
as
gr
import
requests
def
greet
(
name
):
res = requests.get(
"https://api.quotable.io/random"
).json()
return
res
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch()