Spaces:
Runtime error
Runtime error
Download app/components/ChatInput.py from ucGroupProj/Store-Front-Agentic-Chat-bot: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/ucGroupProj/Store-Front-Agentic-Chat-bot/resolve/main/app/components/ChatInput.py
- Command line
-
hf download hf://spaces/ucGroupProj/Store-Front-Agentic-Chat-bot/app/components/ChatInput.py
-
curl -L -o ChatInput.py https://huggingface.co/spaces/ucGroupProj/Store-Front-Agentic-Chat-bot/resolve/main/app/components/ChatInput.py
460 Bytes
| # /app/components/ChatInput.py | |
| from __future__ import annotations | |
| import gradio as gr | |
| def build_chat_input(placeholder: str = "Type a message and press Enter…"): | |
| """ | |
| Returns (textbox, send_button, clear_button). | |
| """ | |
| with gr.Row(): | |
| txt = gr.Textbox(placeholder=placeholder, scale=8, show_label=False) | |
| send = gr.Button("Send", variant="primary", scale=1) | |
| clear = gr.Button("Clear", scale=1) | |
| return txt, send, clear | |