Spaces:
No application file
No application file
A newer version of the Gradio SDK is available:
6.6.0
metadata
title: Hotel OS Bot
emoji: π
colorFrom: blue
colorTo: yellow
sdk: gradio
pinned: true
license: bigscience-openrail-m
Hotel OS Bot
A Telegram bot for managing hotel operations, including bookings, payments, and expenses.
Project Structure
hotel_os_bot/
βββ app/
β βββ __init__.py
β βββ main.py # Bot + FastAPI + Polling
β βββ utils.py # OCR, Verify, DB helpers
β βββ resources/
β βββ pms_blueprint.txt
βββ webapp/
β βββ index.html
β βββ style.css
β βββ app.js
βββ scripts/
β βββ backup_db.py
β βββ notify_pending.py
βββ data/
βββ requirements.txt
βββ Dockerfile
βββ .dockerignore
βββ start.sh
βββ space.yaml
βββ .env.example
βββ README.md
How to Run
Set up the environment:
cp .env.example .envThen, edit the
.envfile with your actual credentials (Telegram Bot Token, User ID, Gemini API Key).Install dependencies:
pip install -r requirements.txtRun the application:
chmod +x start.sh ./start.shAlternatively, you can run the main module directly:
python -m app.main
Deploy to Hugging Face Spaces
- Push the code to a GitHub repository.
- Create a new Space on Hugging Face, selecting the "Docker" runtime.
- Connect the Space to your GitHub repository.
- In the Space settings, add the secrets from your
.envfile (TELEGRAM_BOT_TOKEN,TELEGRAM_USER_ID,GEMINI_API_KEY).