Spaces:
Build error
Build error
Download app.py from jawad2412/ClickMediaLabInc_chatbot: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/jawad2412/ClickMediaLabInc_chatbot/resolve/main/app.py
- Command line
-
hf download hf://spaces/jawad2412/ClickMediaLabInc_chatbot/app.py
-
curl -L -o app.py https://huggingface.co/spaces/jawad2412/ClickMediaLabInc_chatbot/resolve/main/app.py
294 Bytes
| import gradio as gr | |
| from your_chatbot_module import setup_qa # adjust imports accordingly | |
| qa_chain = setup_qa() | |
| def chat_fn(query): | |
| response = qa_chain.invoke(query) | |
| return response['result'] | |
| gr.Interface(fn=chat_fn, inputs="text", outputs="text", title="Company Chatbot").launch() | |