0001AMA commited on
Commit
4e490b6
·
verified ·
1 Parent(s): f31e5e8

dailygit space-watch: ensure static sdk 2026-09-05T20:47Z

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -19
  2. README.md +11 -93
Dockerfile CHANGED
@@ -1,19 +1 @@
1
- FROM python:3.12-slim
2
-
3
- ENV PYTHONDONTWRITEBYTECODE=1 \
4
- PYTHONUNBUFFERED=1 \
5
- SMOS_DATA_DIR=/data
6
-
7
- WORKDIR /app
8
-
9
- COPY requirements.txt .
10
- RUN pip install --no-cache-dir -r requirements.txt
11
-
12
- COPY app.py .
13
- COPY static ./static
14
-
15
- RUN mkdir -p /data
16
-
17
- EXPOSE 7860
18
-
19
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]
 
1
+ # unused — this Space runs as sdk: static
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,93 +1,11 @@
1
- # SmOS
2
-
3
- AI powered online ordering system, customisable for restaurants and other merchants.
4
-
5
- SmOS is a modular restaurant tech stack: a shared platform core plus merchant-specific modules. Each module can own branding, menu, fulfilment modes (delivery, collection, sit-in), and ordering UX — including browse-the-menu and natural-language “I know what I want” flows.
6
-
7
- ## Explore modules
8
-
9
- | Module | Merchant | Description |
10
- |--------|----------|-------------|
11
- | **SmOS_CC** | The Corner Cafe (Dalkeith) | Custom ordering experience — service mode, menu browse, AI dish matching |
12
-
13
- ## Local
14
-
15
- ```bash
16
- # Platform + modules (static)
17
- python3 -m http.server 8877
18
- # Home: http://127.0.0.1:8877/
19
- # SmOS_CC: http://127.0.0.1:8877/modules/SmOS_CC/
20
-
21
- # Optional: FastAPI voice / kitchen layer (legacy core on port 7860)
22
- python -m venv .venv && source .venv/bin/activate
23
- pip install -r requirements.txt
24
- uvicorn app:app --reload --port 7860
25
- ```
26
-
27
- ## Layout
28
-
29
- ```text
30
- index.html Platform home
31
- styles.css / site.js Platform chrome (Explore modules)
32
- modules/SmOS_CC/ Corner Cafe customisation
33
- static/ Legacy voice + kitchen UI (served by FastAPI)
34
- app.py API + WebSocket kitchen workflow
35
- ```
36
-
37
- ## Remotes
38
-
39
- <<<<<<< HEAD
40
- - GitHub: https://github.com/2000pd3rvr/SMOS
41
- - Hugging Face Space: https://huggingface.co/spaces/0001AMA/SMOS
42
- =======
43
- ## Docker
44
-
45
- ```bash
46
- docker build -t smos .
47
- docker run --rm -p 7860:7860 -v smos-data:/data smos
48
- ```
49
-
50
- ## Integrating into a restaurant system
51
-
52
- The application exposes JSON endpoints under `/api`:
53
-
54
- - `POST /api/translate` — translate guest or staff text
55
- - `POST /api/orders` — submit an order
56
- - `GET /api/orders?language=en` — retrieve translated orders
57
- - `PATCH /api/orders/{id}` — update an order's workflow status
58
- - `GET /api/image` — create a food visualisation URL
59
- - `WS /ws` — receive live order events
60
-
61
- FastAPI's interactive API documentation is available at `/docs`.
62
-
63
- ## Production notes
64
-
65
- This release is a deployable MVP. Before handling real payments or sensitive
66
- customer data, add staff authentication, role-based access, a managed database,
67
- rate limiting, audit logs, menu/POS integration, and explicit allergy
68
- confirmation. Browser voice recognition varies by browser and operating system.
69
- Food images are illustrative and may not match the kitchen's final presentation.
70
-
71
- ## Versioning and deployment
72
-
73
- SMOS uses semantic versions. Every subsequent deployment must increment the
74
- version in `app.py` and this README (for example `v0.1.1`, then `v0.1.2`) and
75
- receive a matching Git tag.
76
- ## Profiles
77
-
78
- - **WordPress:** https://deborahakuokominka.wordpress.com/
79
- - **about.me:** https://about.me/deborah_akuoko_minka_ama
80
- - **ORCID:** https://orcid.org/0009-0008-6219-154X
81
- - **GitHub:** https://github.com/2000pd3rvr
82
- - **GitLab:** https://gitlab.com/2000pd3rvr
83
- - **GitHub Pages hub:** https://2000pd3rvr.github.io/ama-profile/
84
- - **Streamlit apps hub:** https://streamlit-apps-hub.streamlit.app/
85
- - **Render live apps:** https://deborahakuokominka.wordpress.com/#render-apps
86
- - **Google Scholar:** https://scholar.google.co.uk/citations?hl=en&user=ab0EyjYAAAAJ
87
-
88
- ## WordPress articles
89
-
90
- - [Spatial vs. time-resolved images](https://deborahakuokominka.wordpress.com/2026/08/22/spatial-vs-time-resolved-images-2/)
91
- - [Time-of-flight sensors guide](https://deborahakuokominka.wordpress.com/2026/08/22/time-of-flight-sensors-guide/)
92
-
93
- >>>>>>> 2057bab1518fe50e0c797eb0386b6ab305b9afac
 
1
+ ---
2
+ title: SMOS
3
+ emoji: 🔬
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: static
7
+ app_file: index.html
8
+ pinned: false
9
+ ---
10
+
11
+ # SMOS