artificialguybr commited on
Commit
8244168
1 Parent(s): 70a5709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=48).launch(debug=True, server_name="0.0.0.0", server_port=7860)
 
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)