Spaces:
Runtime error
Runtime error
Commit
·
a8a4f77
1
Parent(s):
d2fc417
fix
Browse files
agents.py
CHANGED
|
@@ -11,7 +11,7 @@ def get_llm(model = "gpt4o-0513"):
|
|
| 11 |
|
| 12 |
def get_llms():
|
| 13 |
|
| 14 |
-
main_llm = get_llm("
|
| 15 |
cheap_llm = get_llm("gpt-4o-mini")
|
| 16 |
return main_llm,cheap_llm
|
| 17 |
|
|
|
|
| 11 |
|
| 12 |
def get_llms():
|
| 13 |
|
| 14 |
+
main_llm = get_llm("gpt-4o-2024-08-06")
|
| 15 |
cheap_llm = get_llm("gpt-4o-mini")
|
| 16 |
return main_llm,cheap_llm
|
| 17 |
|
app.py
CHANGED
|
@@ -312,14 +312,15 @@ html_template = """
|
|
| 312 |
<script>
|
| 313 |
async function getUserId() {
|
| 314 |
let userId = sessionStorage.getItem("user_id");
|
| 315 |
-
|
|
|
|
| 316 |
if (!userId) {
|
| 317 |
const response = await fetch("/user_id");
|
| 318 |
const data = await response.json();
|
| 319 |
userId = data.user_id;
|
| 320 |
sessionStorage.setItem("user_id", userId);
|
| 321 |
}
|
| 322 |
-
console.log("set User ID:", userId);
|
| 323 |
}
|
| 324 |
window.onload = getUserId;
|
| 325 |
</script>
|
|
|
|
| 312 |
<script>
|
| 313 |
async function getUserId() {
|
| 314 |
let userId = sessionStorage.getItem("user_id");
|
| 315 |
+
let state = sessionStorage.getItem("state");
|
| 316 |
+
console.log("original User ID:", userId, "state:", state);
|
| 317 |
if (!userId) {
|
| 318 |
const response = await fetch("/user_id");
|
| 319 |
const data = await response.json();
|
| 320 |
userId = data.user_id;
|
| 321 |
sessionStorage.setItem("user_id", userId);
|
| 322 |
}
|
| 323 |
+
console.log("set User ID:", userId, "state:", state);
|
| 324 |
}
|
| 325 |
window.onload = getUserId;
|
| 326 |
</script>
|