Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
gradio
/
json_component_main
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
ec1e319
json_component_main
/
run.py
aliabd
HF Staff
Upload with huggingface_hub
ec1e319
over 2 years ago
raw
Copy download link
history
blame
Safe
194 Bytes
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()