Spaces:
Running
Running
jianghuyihei
commited on
Commit
•
96c4785
1
Parent(s):
5366e5c
fix
Browse files
app.py
CHANGED
@@ -456,9 +456,9 @@ def form_post(request: Request,topic: str = Form(...), user_id: str = Form(...),
|
|
456 |
|
457 |
script = script_template.format(user_id=user_id, state=state)
|
458 |
if user_id in queue.queue:
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
|
463 |
loading_text = "Generating content, Usually takes 3-4 minutes, please wait..."
|
464 |
if state == "generate":
|
|
|
456 |
|
457 |
script = script_template.format(user_id=user_id, state=state)
|
458 |
if user_id in queue.queue:
|
459 |
+
# 如果用户在队列中,移除用户
|
460 |
+
queue.queue.remove(user_id)
|
461 |
+
state = "generate"
|
462 |
|
463 |
loading_text = "Generating content, Usually takes 3-4 minutes, please wait..."
|
464 |
if state == "generate":
|