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