Spaces:
Running
Running
Commit
·
212a5f9
1
Parent(s):
4094826
Update app.py
Browse files
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.
|
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
|