How kos0-col/app-restaurador-ia works
Restaurador IA is a public Django web app for uploading old photos and choosing colorization, restoration, or both. Its main flow validates an upload, saves the original and a processing session, invokes the selected AI service, stores the result, then renders an original/result comparison with a download link. The README documents DeOldify and CodeFormer Gradio integrations and automatic retries. Sampled views and service code support the main wiring; the template and model implementation were not sampled, so their finer behavior is inferred only from documented features and use sites.
Main entry points: views.py Request handlers · services.py Image services · urls.py App routes · inicio.html Comparison UI
Components 11
Web interface
- App routes
procesador/urls.py - Request handlers
procesador/views.py - Upload form
procesador/forms.py - Comparison UI
procesador/templates/procesador/inicio.html
Processing workflow
- App settings
config/settings.py - Image services
procesador/services.py
Files and state
- Processing session
procesador/models.py - Original images
media/subidas - Processed images
media/resultados
AI integrations
- Hugging Face Spaces
Other components
- Visitor
Connections 16
- Visitor → App routes: requests
- App routes → Request handlers: dispatches
- Request handlers → Upload form: validates with
- Request handlers → Comparison UI: renders
- Request handlers → Original images: saves original
- Request handlers → Processing session: creates and updates
- Request handlers → Image services: invokes preset
- Image services → App settings: reads API config
- Image services → Hugging Face Spaces: uploads image
- Image services → Hugging Face Spaces: requests prediction
- Image services → Hugging Face Spaces: downloads output
- Request handlers → Processed images: saves output
- Request handlers → Processing session: loads result session
- Request handlers → Original images: reads original
- Request handlers → Processed images: reads processed image
- Comparison UI → Visitor: shows comparison and download