Spaces:
Running
Running
Space-Face
commited on
Commit
•
54ec371
1
Parent(s):
daf2431
Update main.py
Browse files
main.py
CHANGED
@@ -13,7 +13,7 @@ class AIEndpoint:
|
|
13 |
for token in answer:
|
14 |
if token:
|
15 |
r+=token.token.replace("\n", "\\n")
|
16 |
-
if time.time() -
|
17 |
responder.respond(r)
|
18 |
r=""
|
19 |
responder.close()
|
|
|
13 |
for token in answer:
|
14 |
if token:
|
15 |
r+=token.token.replace("\n", "\\n")
|
16 |
+
if time.time() - responder.cooldown >= 0.5:
|
17 |
responder.respond(r)
|
18 |
r=""
|
19 |
responder.close()
|