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...
4543167
check_api
/
app.py
Omnibus
Create app.py
4543167
verified
about 1 year ago
raw
Copy download link
history
blame
Safe
211 Bytes
import
requests
import
gradio
as
gr
def
get_api
(
inp
):
r = requests.get(
f'
{inp}
'
)
print
(r)
with
gr.Blocks()
as
app:
inp=gr.Textbox()
btn=gr.Button()
btn.click(get_api,inp,
None
)
app.launch()