mohamedemam commited on
Commit
212a5f9
·
1 Parent(s): 4094826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def generate_qa(context, temperature, top_p):
18
  top_p=top_p
19
  )
20
 
21
- generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
22
  return generated_text
23
 
24
  # Create the Gradio interface with sliders for temperature and top-p
 
18
  top_p=top_p
19
  )
20
 
21
+ generated_text = tokenizer.batch_decode(output, skip_special_tokens=True)
22
  return generated_text
23
 
24
  # Create the Gradio interface with sliders for temperature and top-p