SpacesExamples/Gradio-Docker-Persistent-Storage
0
1from huggingface_hub import snapshot_download2 3snapshot_download("tiiuae/falcon-7b")4 5import gradio as gr6def update(name):7 return f"Welcome to Gradio, {name}!"8 9with gr.Blocks() as demo:10 gr.Markdown("Start typing below and then click **Run** to see the output.")11 with gr.Row():12 inp = gr.Textbox(placeholder="What is your name?")13 out = gr.Textbox()14 btn = gr.Button("Run")15 btn.click(fn=update, inputs=inp, outputs=out)16 17demo.launch()