Spaces:
Sleeping
Sleeping
Claude commited on
Commit ·
9a7bb3a
1
Parent(s): 51cc484
Fix AC3: Remove leftover hf_token reference, use deepseek_api_key
Browse files
agents/flutter_screen_generator.py
CHANGED
|
@@ -410,10 +410,10 @@ class FlutterScreenGenerator:
|
|
| 410 |
# Step 1: AI generates 4 intelligent variants based on theme + app_type
|
| 411 |
print(f"🤖 AI generating 4 intelligent variants for {app_type}...")
|
| 412 |
|
| 413 |
-
if self.
|
| 414 |
variants = self._generate_variants_with_ai(theme, app_type)
|
| 415 |
else:
|
| 416 |
-
print("⚠️ No
|
| 417 |
variants = self._get_fallback_variants(app_type)
|
| 418 |
|
| 419 |
# Step 2: Generate Dart code for each variant
|
|
@@ -704,7 +704,7 @@ JSON:"""
|
|
| 704 |
|
| 705 |
def _get_fallback_variants(self, app_type: str) -> list:
|
| 706 |
"""
|
| 707 |
-
Fallback variants if AI fails or no
|
| 708 |
Pre-configured smart combinations per app type
|
| 709 |
"""
|
| 710 |
|
|
|
|
| 410 |
# Step 1: AI generates 4 intelligent variants based on theme + app_type
|
| 411 |
print(f"🤖 AI generating 4 intelligent variants for {app_type}...")
|
| 412 |
|
| 413 |
+
if self.deepseek_api_key:
|
| 414 |
variants = self._generate_variants_with_ai(theme, app_type)
|
| 415 |
else:
|
| 416 |
+
print("⚠️ No DEEPSEEK_API_KEY - using fallback variants")
|
| 417 |
variants = self._get_fallback_variants(app_type)
|
| 418 |
|
| 419 |
# Step 2: Generate Dart code for each variant
|
|
|
|
| 704 |
|
| 705 |
def _get_fallback_variants(self, app_type: str) -> list:
|
| 706 |
"""
|
| 707 |
+
Fallback variants if AI fails or no DEEPSEEK_API_KEY
|
| 708 |
Pre-configured smart combinations per app type
|
| 709 |
"""
|
| 710 |
|