--- title: ChefCode - AI Restaurant Management emoji: 🍳 colorFrom: 'blue' colorTo: 'gray' sdk: docker sdk_version: "1.0" app_file: app.py pinned: false --- # 🍳 ChefCode - AI Restaurant Management An AI-powered restaurant inventory and recipe management system with voice recognition and web recipe search. ## 🚀 Features - **AI Assistant**: Voice and text commands for inventory and recipe management - **Web Recipe Search**: Find and import recipes from TheMealDB - **Inventory Management**: Track ingredients with quantities and prices - **Recipe Management**: Create, edit, and manage recipes - **Voice Recognition**: Hands-free operation with continuous conversation ## 🎯 Quick Start 1. **Open the app** - The interface will load automatically 2. **Enable microphone** when prompted for voice commands 3. **Try these commands**: - 🎤 "Add 5 kg of flour at 2 euros per kg" - 🎤 "Search for pasta recipes" - 🎤 "Add recipe Pizza with flour 500 grams and tomato 200 ml" ## 🤖 AI Assistant Commands ### Inventory Management - "Add 5 kg of rice at 2.50 euros per kg" - "Update flour to 10 kg" - "Remove tomatoes from inventory" - "How much rice do we have?" ### Recipe Management - "Add recipe Pizza with flour 100 kg and tomato sauce 200 ml" - "Search for Italian pasta recipes" - "Edit recipe Pizza by adding 2 grams of salt" - "Show me all dessert recipes" ## 🌐 Web Recipe Search 1. Go to **Recipes** section 2. Click **"Search Recipe from Web"** 3. Search for any recipe (e.g., "Italian pasta", "chicken soup") 4. View results and import with AI ingredient mapping ## 🎨 Interface - **Modern Design**: Clean, responsive interface - **Voice-First**: Optimized for hands-free operation - **Color-Coded Results**: Visual feedback for ingredient matching - **Real-Time Updates**: Live data synchronization ## 🔧 Technical Details - **Backend**: FastAPI with SQLite database - **AI Models**: OpenAI GPT-4o-mini and GPT-o3 - **Frontend**: Modern web interface with voice recognition - **External APIs**: TheMealDB for recipe discovery ## 📊 Database The app uses SQLite for data storage with the following tables: - `inventory_items` - Inventory data - `recipes` - Recipe data with JSON ingredients - `tasks` - Production tasks ## 🎉 Enjoy ChefCode! Perfect for restaurant managers, chefs, and kitchen staff who want to streamline their operations with AI-powered tools. **Start by clicking the microphone button and saying your first command!** 🎤✨