Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
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,
|