commit eba934413bf3c55de786272ffb12fc9b680f4b32
parent 971f4b1b518cd0a5c3939868ccf6d13bfc1e266f
Author: maydayv7 <maydayv7@gmail.com>
Date: Thu, 4 Dec 2025 13:45:15 +0530
Update README and fix build
Diffstat:
5 files changed, 33 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
@@ -37,7 +37,21 @@ Download from [python.org](https://www.python.org/downloads/release/python-3810/
python -m venv python_env
```
-### 3. Build the APK
+### 3. Create .env
+
+Create the `.env` file in the root directory containing the following:
+
+```dotenv
+URL_ASSET=<Background Removal Backend Endpoint>
+URL_DESCRIBE=<Florence-v2 Description Backend Endpoint>
+URL_GENERATE=<Stable Diffusion Image Generation Backend Endpoint>
+URL_INPAINTING=<Stable Diffusion Inpainting Backend Endpoint>
+URL_INPAINTING_API=<Fal.ai Inpainting Backend Endpoint>
+URL_SKETCH_API=<Sketch to Image Backend Endpoint>
+SHARED_SECRET_KEY=<Base64 Security Key>
+```
+
+### 4. Build the APK
```bash
flutter clean
diff --git a/flask/README.md b/flask/README.md
@@ -31,5 +31,14 @@ modal setup
modal deploy modal_app.py
```
+## Environment Variables
+
+Ensure that a `.env` file is present in this directory containing the following contents:
+
+```dotenv
+FAL_KEY=<Fal.ai API Key>
+SHARED_SECRET_KEY=<Base64 Security Key>
+```
+
> [!NOTE]
> You must update the root `.env` file for the app to recognize the deployed backend
diff --git a/flask/modal_app.py b/flask/modal_app.py
@@ -52,7 +52,7 @@ app = modal.App("creekui", image=image)
# 2. THE BACKEND SERVER CLASS
# ==============================================================================
@app.cls(
- gpu="any",
+ gpu="A10G",
scaledown_window=300,
secrets=[modal.Secret.from_name("creek-secrets")],
)
diff --git a/lib/data/database.dart b/lib/data/database.dart
@@ -3,7 +3,7 @@ import 'package:path/path.dart';
class AppDatabase {
static Database? _db;
- static const String _dbName = 'database_v6.db';
+ static const String _dbName = 'database_v7.db';
static Future<Database> get db async {
if (_db != null) return _db!;
diff --git a/lib/services/flask_service.dart b/lib/services/flask_service.dart
@@ -1,17 +1,16 @@
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
-import 'package:adobe/data/repos/file_repo.dart';
-import 'package:adobe/data/repos/image_repo.dart';
-import 'package:adobe/data/repos/note_repo.dart';
-import 'package:adobe/data/repos/project_repo.dart';
import 'package:flutter/foundation.dart';
-import 'package:flutter_dotenv/flutter_dotenv.dart';
+import 'package:path_provider/path_provider.dart';
import 'package:http/http.dart' as http;
import 'package:path/path.dart' as p;
-import 'package:flutter/foundation.dart';
-import 'package:path_provider/path_provider.dart';
-import 'package:adobe/services/python_service.dart';
+import 'package:flutter_dotenv/flutter_dotenv.dart';
+import 'package:creekui/data/repos/file_repo.dart';
+import 'package:creekui/data/repos/image_repo.dart';
+import 'package:creekui/data/repos/note_repo.dart';
+import 'package:creekui/data/repos/project_repo.dart';
+import './python_service.dart';
import './encryption_service.dart';
class FlaskService {