Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
•
8244168
1
Parent(s):
70a5709
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ user
|
|
41 |
{user_prompt}
|
42 |
assistant
|
43 |
'''
|
44 |
-
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids
|
45 |
|
46 |
# Gerar a saída
|
47 |
output = model.generate(
|
@@ -119,4 +119,4 @@ with gr.Blocks(css=CSS) as demo:
|
|
119 |
)
|
120 |
stop.click(fn=None, inputs=None, outputs=None, cancels=[submit_click_event], queue=False)
|
121 |
|
122 |
-
demo.queue(max_size=128, concurrency_count=
|
|
|
41 |
{user_prompt}
|
42 |
assistant
|
43 |
'''
|
44 |
+
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
45 |
|
46 |
# Gerar a saída
|
47 |
output = model.generate(
|
|
|
119 |
)
|
120 |
stop.click(fn=None, inputs=None, outputs=None, cancels=[submit_click_event], queue=False)
|
121 |
|
122 |
+
demo.queue(max_size=128, concurrency_count=2)
|