creek
The AI Image Editor of 2030git clone https://github.com/maydayv7/creek
commit 886da746c65d3953f279fdc86e5176127859f702 parent 2e76d6eb43027c56c7edc1635d5e45f4df28057f Author: maydayv7 <maydayv7@gmail.com> Date: Wed, 3 Dec 2025 00:47:07 +0530 Fix server URLs
Diffstat:
| M | .env | | | 18 | +++++++++++++----- |
| M | lib/services/flask_service.dart | | | 3 | ++- |
2 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/.env b/.env @@ -1,5 +1,13 @@ -URL_ASSET=https://maydayv7--adobe-flask-modelbackend-asset.modal.run -URL_DESCRIBE=https://maydayv7--adobe-flask-modelbackend-describe.modal.run -URL_GENERATE=https://maydayv7--adobe-flask-modelbackend-generate.modal.run -URL_INPAINTING=https://maydayv7--adobe-flask-modelbackend-inpainting.modal.run -URL_INPAINTING_API=https://maydayv7--adobe-flask-modelbackend-inpainting-api.modal.run +# Modal Server +# URL_ASSET=https://maydayv7--adobe-flask-modelbackend-asset.modal.run +# URL_DESCRIBE=https://maydayv7--adobe-flask-modelbackend-describe.modal.run +# URL_GENERATE=https://maydayv7--adobe-flask-modelbackend-generate.modal.run +# URL_INPAINTING=https://maydayv7--adobe-flask-modelbackend-inpainting.modal.run +# URL_INPAINTING_API=https://maydayv7--adobe-flask-modelbackend-inpainting-api.modal.run + +# Abhinav's PC +URL_ASSET=https://locustlike-trieciously-rudolph.ngrok-free.dev/asset +URL_DESCRIBE=https://locustlike-trieciously-rudolph.ngrok-free.dev/describe +URL_GENERATE=https://locustlike-trieciously-rudolph.ngrok-free.dev/generate +URL_INPAINTING=https://locustlike-trieciously-rudolph.ngrok-free.dev/inpainting +URL_INPAINTING_API=https://locustlike-trieciously-rudolph.ngrok-free.dev/inpainting-api diff --git a/lib/services/flask_service.dart b/lib/services/flask_service.dart @@ -17,6 +17,7 @@ class FlaskService { static String get _urlGenerate => dotenv.env['URL_GENERATE'] ?? ''; static String get _urlInpainting => dotenv.env['URL_INPAINTING'] ?? ''; + static String get _urlInpaintingApi => dotenv.env['URL_INPAINTING_API'] ?? ''; static String get _urlAsset => dotenv.env['URL_ASSET'] ?? ''; static String get _urlDescribe => dotenv.env['URL_DESCRIBE'] ?? ''; @@ -126,7 +127,7 @@ class FlaskService { if (base64Image == null || base64Mask == null) return null; return _performImageOperation( - endpoint: '/inpainting-api', + fullUrl: _urlInpaintingApi, logPrefix: '🖌️ Inpainting', body: { 'prompt': prompt,