wrong input
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def text_to_image(image, prompt, duplications: float):
|
|
| 73 |
batch['input_ids'].to(model.device)
|
| 74 |
batch['attention_mask'].to(model.device)
|
| 75 |
batch['pixel_values'].to(model.device)
|
| 76 |
-
output = model.generate(**
|
| 77 |
|
| 78 |
# Unload GPU
|
| 79 |
batch['input_ids'].to('cpu')
|
|
|
|
| 73 |
batch['input_ids'].to(model.device)
|
| 74 |
batch['attention_mask'].to(model.device)
|
| 75 |
batch['pixel_values'].to(model.device)
|
| 76 |
+
output = model.generate(**batch, max_new_tokens=500, temperature=0.3)
|
| 77 |
|
| 78 |
# Unload GPU
|
| 79 |
batch['input_ids'].to('cpu')
|