In case you want to reproduce the error, you can use the following text on the huggingface Space:
Headline:
Ukraine tensions: Russia invasion could begin any day, US warns
Content:
Russia has the troops in place to invade Ukraine "at any time" and American citizens should leave within the next 48 hours, the US has warned.
An invasion could start with aerial bombing that would make departures difficult and endanger civilians, the White House said on Friday.
When trying to use
annotated_text
with a text that has a line break it raises the following Error:This only happens on a huggingface Space, locally works as expected.
You can find the Space and the code here.
In case you want to reproduce the error, you can use the following text on the huggingface Space:
Headline:
Content:
Thanks!