fffiloni commited on
Commit
9253ad3
1 Parent(s): 2006d53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 new lines
52
- paragraphs = result.split('\n\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)