Spaces:
Running
Running
jianghuyihei
commited on
Commit
•
d787ad1
1
Parent(s):
179fcee
fix
Browse files
app.py
CHANGED
@@ -424,7 +424,7 @@ def form_post(topic: str = Form(...), user_id: str = Form(...), state: str = For
|
|
424 |
script = f"""
|
425 |
function setstate() {{
|
426 |
document.getElementById("user_id").value = "{user_id}";
|
427 |
-
document.getElementById("state").value = "{
|
428 |
let userId = document.getElementById("user_id").value;
|
429 |
let state = document.getElementById("state").value;
|
430 |
console.log(`1 User ID: ${{userId}}, State: ${{state}}`);
|
|
|
424 |
script = f"""
|
425 |
function setstate() {{
|
426 |
document.getElementById("user_id").value = "{user_id}";
|
427 |
+
document.getElementById("state").value = "{new_state}";
|
428 |
let userId = document.getElementById("user_id").value;
|
429 |
let state = document.getElementById("state").value;
|
430 |
console.log(`1 User ID: ${{userId}}, State: ${{state}}`);
|