mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
02c7bfe1ed
* add embedded component for dataset * add embedded component for examples * add embedded component for progress * remove make_waveform * add embedded component for uploadbutton * remove footer on lineplot embedded component * remove broken image from gallery * add embedded component for interpretation * generated notebooks * changelog * change example component demo to images * remove natgeo img in gallery demo * regenerate notebooks
17 lines
572 B
Python
17 lines
572 B
Python
import gradio as gr
|
|
|
|
css = "footer {display: none !important;} .gradio-container {min-height: 0px !important;}"
|
|
|
|
with gr.Blocks(css=css) as demo:
|
|
gr.Dataset(components=[gr.Textbox(visible=False)],
|
|
label="Text Dataset",
|
|
samples=[
|
|
["The quick brown fox jumps over the lazy dog"],
|
|
["Build & share delightful machine learning apps"],
|
|
["She sells seashells by the seashore"],
|
|
["Supercalifragilisticexpialidocious"],
|
|
["Lorem ipsum"],
|
|
["That's all folks!"]
|
|
],
|
|
)
|
|
demo.launch() |