multimodalart HF Staff commited on
Commit
b7439a7
·
verified ·
1 Parent(s): c05aa51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -430,7 +430,7 @@ def get_beam_search_html(
430
  ):
431
  input_with_template=f"<|im_start|>system /n You are a helpful chatbot.<|im_end|><|im_start|>{input_text}"
432
 
433
- inputs = tokenizer([input_with_template], return_tensors="pt")
434
 
435
  outputs = model.generate(
436
  **inputs,
 
430
  ):
431
  input_with_template=f"<|im_start|>system /n You are a helpful chatbot.<|im_end|><|im_start|>{input_text}"
432
 
433
+ inputs = tokenizer([input_with_template], return_tensors="pt").to("cuda")
434
 
435
  outputs = model.generate(
436
  **inputs,