Tonic commited on
Commit
a994985
·
verified ·
1 Parent(s): 5bf5e24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def generate_text(prompt, max_length, repetition_penalty, temperature):
37
  )
38
 
39
  # Decode the generated tokens and return the result
40
- generated_text = tokenizer.batch_decode(outputs[:, input_ids.shape[[1]:-1], skip_special_tokens=True)[0].strip()
41
  return generated_text
42
 
43
  # Create the Gradio interface
 
37
  )
38
 
39
  # Decode the generated tokens and return the result
40
+ generated_text = tokenizer.batch_decode(outputs[:, input_ids.shape[1]:-1], skip_special_tokens=True)[0].strip()
41
  return generated_text
42
 
43
  # Create the Gradio interface