How mprcompanygithub/offline-recipe-generator works
This is a small recipe-generation application: a user supplies ingredients, the backend asks a local Ollama-compatible model for a recipe, and the backend returns the generated text. The sampled backend shows the model request and response handling. The tree also contains a website file, but its contents were not sampled, so its connection to the API is shown as unverified. The text file’s role is unclear and is not mapped as a runtime component.
Main entry points: Task1Backend.py Recipe API · website.html Website
Components 5
User interface
- Website
website.html
Recipe generation
- Recipe API
Task1Backend.py - Recipe response
Task1Backend.py
Local model
- Ollama model
Other components
- User
Connections 6
- User → Website: enters ingredients
- Website → Recipe API: submits request
- Recipe API → Ollama model: requests generation
Task1Backend.py - Ollama model → Recipe API: streams response
Task1Backend.py - Recipe API → Recipe response: returns recipe
Task1Backend.py - Recipe response → User: delivers result