Wajahat698 commited on
Commit
188b570
·
verified ·
1 Parent(s): cbe256c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -159,7 +159,7 @@ def send_feedback_via_email(name, email, feedback):
159
 
160
  def clean_text(text):
161
  text = text.replace('\\n', '\n')
162
-
163
  # Remove all HTML tags, including nested structures
164
  text = re.sub(r'<[^>]*>', '', text)
165
  # Remove any remaining < or > characters
@@ -200,6 +200,7 @@ def clean_text(text):
200
 
201
  # Join the paragraphs back together
202
  cleaned_text = '\n\n'.join(para for para in cleaned_paragraphs if para)
 
203
 
204
 
205
 
 
159
 
160
  def clean_text(text):
161
  text = text.replace('\\n', '\n')
162
+
163
  # Remove all HTML tags, including nested structures
164
  text = re.sub(r'<[^>]*>', '', text)
165
  # Remove any remaining < or > characters
 
200
 
201
  # Join the paragraphs back together
202
  cleaned_text = '\n\n'.join(para for para in cleaned_paragraphs if para)
203
+ return cleaned_text
204
 
205
 
206