Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
•
35cbad9
1
Parent(s):
56732fa
Update concurrency_count = 2
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)
|
@@ -283,9 +283,6 @@ css = """
|
|
283 |
"""
|
284 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
285 |
examples_list = [
|
286 |
-
[
|
287 |
-
"Question: What NFL team won the Super Bowl in the year Justin Bieber was born?\n Answer: Let's work this out in a step by step way to be sure we have the right answer."
|
288 |
-
],
|
289 |
["What NFL team won the Super Bowl in the year Justin Bieber was born?"],
|
290 |
[
|
291 |
"What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
|
@@ -349,7 +346,7 @@ with gr.Blocks(
|
|
349 |
with gr.Column(scale=5):
|
350 |
msg = gr.Textbox(
|
351 |
label="Chat Message Box",
|
352 |
-
placeholder="Ask me anything (press Enter or click Submit to send)",
|
353 |
show_label=False,
|
354 |
# container=False,
|
355 |
lines=6,
|
@@ -448,7 +445,7 @@ else:
|
|
448 |
# concurrency_count = max(int(16 / file_size) - 1, 1)
|
449 |
# """
|
450 |
|
451 |
-
concurrency_count =
|
452 |
logger.info(f"{concurrency_count=}")
|
453 |
|
454 |
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)
|
|
|
283 |
"""
|
284 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
285 |
examples_list = [
|
|
|
|
|
|
|
286 |
["What NFL team won the Super Bowl in the year Justin Bieber was born?"],
|
287 |
[
|
288 |
"What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
|
|
|
346 |
with gr.Column(scale=5):
|
347 |
msg = gr.Textbox(
|
348 |
label="Chat Message Box",
|
349 |
+
placeholder="Ask me anything (press Shift+Enter or click Submit to send)",
|
350 |
show_label=False,
|
351 |
# container=False,
|
352 |
lines=6,
|
|
|
445 |
# concurrency_count = max(int(16 / file_size) - 1, 1)
|
446 |
# """
|
447 |
|
448 |
+
concurrency_count = 2
|
449 |
logger.info(f"{concurrency_count=}")
|
450 |
|
451 |
block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
|