Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,15 +3,11 @@ import gradio as gr
|
|
3 |
import os
|
4 |
import time # For progress updates
|
5 |
|
6 |
-
# --- Core Logic Imports ---
|
7 |
-
# Initialize clients first to ensure API keys are loaded before other modules use them.
|
8 |
from core.llm_clients import initialize_all_clients, GEMINI_API_CONFIGURED, HF_API_CONFIGURED
|
9 |
-
initialize_all_clients() # Call initialization once when the app starts
|
10 |
-
|
11 |
from core.generation_engine import generate_initial_solutions
|
12 |
-
from core.evaluation_engine import evaluate_solution_candidate, EvaluationResult
|
13 |
from core.evolution_engine import evolve_solution
|
14 |
-
from prompts.system_prompts import get_system_prompt
|
15 |
from prompts.prompt_templates import format_code_test_analysis_user_prompt
|
16 |
|
17 |
# --- Application Configuration (Models, Defaults) ---
|
|
|
3 |
import os
|
4 |
import time # For progress updates
|
5 |
|
|
|
|
|
6 |
from core.llm_clients import initialize_all_clients, GEMINI_API_CONFIGURED, HF_API_CONFIGURED
|
|
|
|
|
7 |
from core.generation_engine import generate_initial_solutions
|
8 |
+
from core.evaluation_engine import evaluate_solution_candidate, EvaluationResult
|
9 |
from core.evolution_engine import evolve_solution
|
10 |
+
from prompts.system_prompts import get_system_prompt
|
11 |
from prompts.prompt_templates import format_code_test_analysis_user_prompt
|
12 |
|
13 |
# --- Application Configuration (Models, Defaults) ---
|