CoolFace
Apppublic

Packand/rule-based-delivery-bot

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

Delivery Bot (rule-based)

How to run locally:

  1. 1.Ensure delivery_bot.py is in this folder.
  2. 2.Create a virtual environment: python3 -m venv env source env/bin/activate
  3. 3.Install requirements: pip install -r requirements.txt
  4. 4.Run: python app.py
  5. 5.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 .gitattributes if 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.