Spaces:
Running
Running
AlekseyKorshuk
commited on
Commit
•
169e689
1
Parent(s):
4eed7dc
Update app.py
Browse files
app.py
CHANGED
@@ -240,7 +240,7 @@ if st.button("Run"):
|
|
240 |
if model is not None:
|
241 |
with st.spinner(text=f"Generating lyrics..."):
|
242 |
encoded_prompt = tokenizer(start, add_special_tokens=False, return_tensors="pt").input_ids
|
243 |
-
encoded_prompt = encoded_prompt.to(
|
244 |
# prediction
|
245 |
output_sequences = model.generate(
|
246 |
input_ids=encoded_prompt,
|
|
|
240 |
if model is not None:
|
241 |
with st.spinner(text=f"Generating lyrics..."):
|
242 |
encoded_prompt = tokenizer(start, add_special_tokens=False, return_tensors="pt").input_ids
|
243 |
+
encoded_prompt = encoded_prompt.to(model.device)
|
244 |
# prediction
|
245 |
output_sequences = model.generate(
|
246 |
input_ids=encoded_prompt,
|