Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
Omnibus/check_api
Nymbo
/
check_api
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
fb8bd23
check_api
/
app.py
Omnibus
Update app.py
fb8bd23
verified
about 1 year ago
raw
Copy download link
history
blame
Safe
239 Bytes
import
requests
import
gradio
as
gr
def
get_api
(
inp
):
r = requests.get(
f'
{inp}
'
)
return
(r.content)
with
gr.Blocks()
as
app:
inp=gr.Textbox()
btn=gr.Button()
outp=gr.JSON()
btn.click(get_api,inp,outp)
app.launch()