Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from openai import OpenAI
|
|
5 |
|
6 |
from optillm.cot_reflection import cot_reflection
|
7 |
from optillm.rto import round_trip_optimization
|
8 |
-
from optillm.z3_solver import
|
9 |
from optillm.self_consistency import advanced_self_consistency_approach
|
10 |
from optillm.rstar import RStar
|
11 |
from optillm.plansearch import plansearch
|
@@ -62,7 +62,7 @@ def respond(message, history, model, approach, system_message, max_tokens, tempe
|
|
62 |
if approach == 'rto':
|
63 |
final_response, _ = round_trip_optimization(system_prompt, initial_query, client, model)
|
64 |
elif approach == 'z3':
|
65 |
-
z3_solver =
|
66 |
final_response, _ = z3_solver.process_query(initial_query)
|
67 |
elif approach == "self_consistency":
|
68 |
final_response, _ = advanced_self_consistency_approach(system_prompt, initial_query, client, model)
|
|
|
5 |
|
6 |
from optillm.cot_reflection import cot_reflection
|
7 |
from optillm.rto import round_trip_optimization
|
8 |
+
from optillm.z3_solver import Z3SymPySolverSystem
|
9 |
from optillm.self_consistency import advanced_self_consistency_approach
|
10 |
from optillm.rstar import RStar
|
11 |
from optillm.plansearch import plansearch
|
|
|
62 |
if approach == 'rto':
|
63 |
final_response, _ = round_trip_optimization(system_prompt, initial_query, client, model)
|
64 |
elif approach == 'z3':
|
65 |
+
z3_solver = Z3SymPySolverSystem(system_prompt, client, model)
|
66 |
final_response, _ = z3_solver.process_query(initial_query)
|
67 |
elif approach == "self_consistency":
|
68 |
final_response, _ = advanced_self_consistency_approach(system_prompt, initial_query, client, model)
|