check_api / app.py
Omnibus's picture
Update app.py
fb8bd23 verified
raw
history blame
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()