Packand/rule-based-delivery-bot
0
Delivery Bot (rule-based)
How to run locally:
- Ensure
delivery_bot.pyis in this folder. - Create a virtual environment: python3 -m venv env source env/bin/activate
- Install requirements: pip install -r requirements.txt
- Run: python app.py
- Open http://127.0.0.1:7860 in your browser.
If the UI shows a diagnostic message ("Could not find a callable entrypoint..."), edit deliverybot.py to expose a function like: def getresponse(message): return "..." or adjust app.py to call the correct function name.
Hugging Face deployment:
- Create a new Space (SDK: Gradio).
- Upload
delivery_bot.py,app.py,requirements.txt,README.md(and.gitattributesif present). - Commit and wait for the build logs.
Logs for debugging: check the "Logs" tab in the Hugging Face Space or the local terminal output.
