Spaces:
Build error
Build error
Deploy chatbot update
Browse files
app.py
CHANGED
|
@@ -76,8 +76,7 @@ for filename in pdf_files:
|
|
| 76 |
content = page.extract_text()
|
| 77 |
if content:
|
| 78 |
texts.append(content)
|
| 79 |
-
text = "
|
| 80 |
-
".join(texts).strip()
|
| 81 |
if text:
|
| 82 |
docs.append({"page_content": text, "metadata": {"source": filename}})
|
| 83 |
print(f"✅ {filename} 처리 완료 (길이 {len(text)}자)")
|
|
|
|
| 76 |
content = page.extract_text()
|
| 77 |
if content:
|
| 78 |
texts.append(content)
|
| 79 |
+
text = "\n".join(texts).strip()
|
|
|
|
| 80 |
if text:
|
| 81 |
docs.append({"page_content": text, "metadata": {"source": filename}})
|
| 82 |
print(f"✅ {filename} 처리 완료 (길이 {len(text)}자)")
|