fthor commited on
Commit
d3f9bac
·
1 Parent(s): f8fd25d

wrong input

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(**inputs, max_new_tokens=500, temperature=0.3)
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')