creek

The AI Image Editor of 2030
commit 47f269e2af8a439b4164b4e9f457c0ad6f8246c1
parent caef993e2fbb728f70bb93016f8578889406cfa2
Author: aditya-samal <samaladitya2004@gmail.com>
Date:   Wed,  3 Dec 2025 01:17:42 +0530

Merge branch 'main' of https://github.com/nilotpal-n7/adobe

Diffstat:
M.env | 18+++++++++++++-----
Mlib/services/flask_service.dart | 13+++++++------
2 files changed, 20 insertions(+), 11 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 @@ -15,10 +15,11 @@ class FlaskService { // CONFIGURATION // =========================================================================== - // Ensure SERVER_URL is defined in .env file (New/Refactored Config) - static String get _serverUrl { - return dotenv.env['SERVER_URL'] ?? 'http://127.0.0.1:5000'; - } + 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'] ?? ''; static const Map<String, String> _headers = { 'Content-Type': 'application/json', @@ -384,8 +385,8 @@ class FlaskService { if (base64Image == null || base64Mask == null) return null; return _performImageOperation( - endpoint: '/inpainting-api', // Keeping the custom endpoint logic - logPrefix: '🖌️ Inpainting (API)', + fullUrl: _urlInpaintingApi, + logPrefix: '🖌️ Inpainting', body: { 'prompt': prompt, 'negative_prompt': 'blurry, bad quality, low res, ugly',