gradio/demo/json_component/run.py
Ali Abdalla bff43bfb65
Upload all demos to spaces (#2281)
* upload all demos in the repo to spaces

* remove upload_demos from recipes, fix error

* load docs and guides demos from spaces

* Remove old demos dir, container, nginx and docker-compose

* update landing page spaces through /demo

* fix run filenames

* skip demos without a run.py file

* fix embedding in guides and docs

* update only on version change

* fix restart script

* fix broken demos

* add component demos

* website tracking pip

* fix embedded components

* fix components

* fix extra slash

* remove footers correctly

* Update CHANGELOG.md

* fix race condition

* add inner_template to gitignore

* set runfile to run.py

* fix time.sleep after testing

* check for prereleases
2022-10-14 14:07:26 -07:00

6 lines
194 B
Python

import gradio as gr
with gr.Blocks() as demo:
gr.JSON(value={"Key 1": "Value 1", "Key 2": {"Key 3": "Value 2", "Key 4": "Value 3"}, "Key 5": ["Item 1", "Item 2", "Item 3"]})
demo.launch()