Kevin Fink commited on
Commit
10213f4
·
1 Parent(s): 36d06e9
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -261,7 +261,7 @@ def predict(text):
261
  print(inputs)
262
  # Generate outputs
263
  with torch.no_grad(): # Disable gradient calculation for inference
264
- outputs = model.generate(inputs['input_ids'][0])
265
 
266
  ## Decode the generated output
267
  #predictions = tokenizer.decode(outputs[0], skip_special_tokens=True)
 
261
  print(inputs)
262
  # Generate outputs
263
  with torch.no_grad(): # Disable gradient calculation for inference
264
+ outputs = model.generate(inputs['input_ids'])
265
 
266
  ## Decode the generated output
267
  #predictions = tokenizer.decode(outputs[0], skip_special_tokens=True)