Download app.py from Rafe2001/Tag8_BOT: direct link, hf CLI and curl.
- Browser
- Download file 307 Bytes
-
https://huggingface.co/spaces/Rafe2001/Tag8_BOT/resolve/main/app.py
- Command line
-
hf download hf://spaces/Rafe2001/Tag8_BOT/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Rafe2001/Tag8_BOT/resolve/main/app.py
307 Bytes
| import gradio as gr | |
| def chatbot_query(query): | |
| response = query_engine.query(query) | |
| return response | |
| face = gr.Interface( | |
| fn=chatbot_query, | |
| inputs=gr.Textbox(prompt="Ask me anything:"), | |
| outputs=gr.Textbox(), | |
| live= False, | |
| capture_session=True, | |
| theme="compact" | |
| ) | |
| face.launch() |