Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def infer(image_input):
|
|
48 |
|
49 |
result = get_text_after_colon(result)
|
50 |
|
51 |
-
# Split the text into paragraphs based on
|
52 |
-
paragraphs = result.split('\n
|
53 |
|
54 |
# Join the paragraphs back with an extra empty line between each paragraph
|
55 |
formatted_text = '\n\n'.join(paragraphs)
|
|
|
48 |
|
49 |
result = get_text_after_colon(result)
|
50 |
|
51 |
+
# Split the text into paragraphs based on actual line breaks
|
52 |
+
paragraphs = result.split('\n')
|
53 |
|
54 |
# Join the paragraphs back with an extra empty line between each paragraph
|
55 |
formatted_text = '\n\n'.join(paragraphs)
|