Nick088 commited on
Commit
a6bd57b
·
verified ·
1 Parent(s): 7b60be9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def generate(your_prompt, max_new_tokens, repetition_penalty, temperature, model
30
  model.to(dtype)
31
 
32
  input_text = f"Expand the following prompt to add more detail: {your_prompt}"
33
- input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to(device).to(dtype)
34
 
35
  outputs = model.generate(
36
  input_ids,
 
30
  model.to(dtype)
31
 
32
  input_text = f"Expand the following prompt to add more detail: {your_prompt}"
33
+ input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to(device)
34
 
35
  outputs = model.generate(
36
  input_ids,