Spaces:
Runtime error
Runtime error
Download app/components/Sidebar.py from ucGroupProj/Store-Front-Agentic-Chat-bot: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/ucGroupProj/Store-Front-Agentic-Chat-bot/resolve/main/app/components/Sidebar.py
- Command line
-
hf download hf://spaces/ucGroupProj/Store-Front-Agentic-Chat-bot/app/components/Sidebar.py
-
curl -L -o Sidebar.py https://huggingface.co/spaces/ucGroupProj/Store-Front-Agentic-Chat-bot/resolve/main/app/components/Sidebar.py
461 Bytes
| # /app/components/Sidebar.py | |
| import gradio as gr | |
| def build_sidebar(): | |
| """ | |
| Returns (mode_dropdown, clear_btn, faq_toggle) | |
| """ | |
| with gr.Column(scale=1, min_width=220): | |
| gr.Markdown("### Settings") | |
| mode = gr.Dropdown(choices=["anonymous", "logged-in"], value="anonymous", label="Mode") | |
| faq_toggle = gr.Checkbox(label="Show FAQ section", value=False) | |
| clear = gr.Button("Clear chat") | |
| return mode, clear, faq_toggle | |