mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-03 01:50:59 +08:00
bff43bfb65
* 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
6 lines
194 B
Python
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() |