Spaces:
Running on Zero
Running on Zero
Maikeu Locatelli
Refactor app.py to implement HF Inference client for texture generation, enhancing model handling and error management. Update Gradio interface for improved user experience with advanced controls, presets, and history display. Modify settings for persistent storage in HF Spaces and adjust environment configuration for model ID. Add new dependencies in requirements.txt for huggingface_hub.
4bb998d | # Model Configuration | |
| # HF Inference (Spaces): prefira o repo id canônico (sem "models/"). | |
| # O código aceita ambos (ele normaliza), mas esse é o recomendado. | |
| MODEL_ID=gokaygokay/Flux-Seamless-Texture-LoRA | |
| MODEL_PROVIDER=hf-inference | |
| # Paths | |
| OUTPUT_DIR=generated_images | |
| ASSETS_DIR=assets | |
| # MCP Configuration | |
| MCP_ENABLED=true | |
| MCP_ENDPOINT=/gradio_api/mcp/ | |
| # Application Settings | |
| MAX_IMAGES=100 | |
| CLEANUP_AFTER_DAYS=7 | |
| ENABLE_WATERMARK=false | |
| # Logging | |
| LOG_LEVEL=INFO | |
| LOG_FILE=app.log | |