Spaces:
Paused
Paused
removed the headers from the text output generated by model
Browse files
app.py
CHANGED
|
@@ -46,7 +46,8 @@ def xgen(input_text,
|
|
| 46 |
# Decode the output tensors into string
|
| 47 |
outputs_decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 48 |
|
| 49 |
-
|
|
|
|
| 50 |
|
| 51 |
return output_text
|
| 52 |
|
|
|
|
| 46 |
# Decode the output tensors into string
|
| 47 |
outputs_decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 48 |
|
| 49 |
+
# Remove header from the output
|
| 50 |
+
output_text = outputs_decoded.replace(header, "").strip()
|
| 51 |
|
| 52 |
return output_text
|
| 53 |
|