Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
72dd4e4
1
Parent(s):
35cbad9
Update concurrency_count=1, 2 does not seem to work
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ def bot(history):
|
|
218 |
print(prefix, end="", flush=True)
|
219 |
logger.debug(f"{prefix=}")
|
220 |
print(elm, end="", flush=True)
|
221 |
-
# logger.debug(f"{elm
|
222 |
|
223 |
response.append(elm)
|
224 |
history[-1][1] = prefix + "".join(response)
|
@@ -445,7 +445,7 @@ else:
|
|
445 |
# concurrency_count = max(int(16 / file_size) - 1, 1)
|
446 |
# """
|
447 |
|
448 |
-
concurrency_count =
|
449 |
logger.info(f"{concurrency_count=}")
|
450 |
|
451 |
block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
|
|
|
218 |
print(prefix, end="", flush=True)
|
219 |
logger.debug(f"{prefix=}")
|
220 |
print(elm, end="", flush=True)
|
221 |
+
# logger.debug(f"{elm}")
|
222 |
|
223 |
response.append(elm)
|
224 |
history[-1][1] = prefix + "".join(response)
|
|
|
445 |
# concurrency_count = max(int(16 / file_size) - 1, 1)
|
446 |
# """
|
447 |
|
448 |
+
concurrency_count = 1
|
449 |
logger.info(f"{concurrency_count=}")
|
450 |
|
451 |
block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
|