Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|
| 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,
|