Omnibus's picture
Create app.py
01b7d84 verified
raw
history blame
336 Bytes
import gradio as gr
import requests
import json
def get_rss(rss_json_url):
r = requests.get(f'{rss_json_url}')
lod = json.loads(r.text)
return lod
with gr.Blocks() as app:
with gr.Row():
inp = gr.Textbox()
btn = gr.Button()
out_json = gr.JSON()
btn.click(get_rss,inp,out_json)
app.launch()