Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ from openai import OpenAI
|
|
| 6 |
from optillm.moa import mixture_of_agents
|
| 7 |
from optillm.mcts import chat_with_mcts
|
| 8 |
from optillm.bon import best_of_n_sampling
|
|
|
|
| 9 |
|
| 10 |
API_KEY = os.environ.get("HF_TOKEN")
|
| 11 |
|
|
@@ -33,7 +34,7 @@ def respond(
|
|
| 33 |
|
| 34 |
# response = ""
|
| 35 |
|
| 36 |
-
final_response =
|
| 37 |
return final_response
|
| 38 |
|
| 39 |
# for message in client.chat_completion(
|
|
|
|
| 6 |
from optillm.moa import mixture_of_agents
|
| 7 |
from optillm.mcts import chat_with_mcts
|
| 8 |
from optillm.bon import best_of_n_sampling
|
| 9 |
+
from optillm.cot_reflection import cot_reflection
|
| 10 |
|
| 11 |
API_KEY = os.environ.get("HF_TOKEN")
|
| 12 |
|
|
|
|
| 34 |
|
| 35 |
# response = ""
|
| 36 |
|
| 37 |
+
final_response = cot_reflection(system_message, message, client, model)
|
| 38 |
return final_response
|
| 39 |
|
| 40 |
# for message in client.chat_completion(
|