acecalisto3 commited on
Commit
7b66fde
·
verified ·
1 Parent(s): 127fc81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,6 +10,7 @@ from typing import List, Dict, Optional, Union
10
  from pathlib import Path
11
  import requests
12
  import validators
 
13
  import gradio as gr
14
  from bs4 import BeautifulSoup
15
  from fake_useragent import UserAgent
@@ -224,7 +225,7 @@ class FileProcessor:
224
  try:
225
  with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
226
  content = f.read()
227
- if content.strip():
228
  results.append({
229
  "source": "file",
230
  "filename": filename,
 
10
  from pathlib import Path
11
  import requests
12
  import validators
13
+
14
  import gradio as gr
15
  from bs4 import BeautifulSoup
16
  from fake_useragent import UserAgent
 
225
  try:
226
  with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
227
  content = f.read()
228
+ if content.strip():
229
  results.append({
230
  "source": "file",
231
  "filename": filename,