Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -3,10 +3,10 @@ import os
|
|
| 3 |
import requests
|
| 4 |
from bs4 import BeautifulSoup
|
| 5 |
from fpdf import FPDF
|
|
|
|
| 6 |
|
| 7 |
-
# Use a
|
| 8 |
-
OUT_DIR =
|
| 9 |
-
os.makedirs(OUT_DIR, exist_ok=True)
|
| 10 |
|
| 11 |
def scrape_website(url):
|
| 12 |
"""Scrape text content from a webpage."""
|
|
|
|
| 3 |
import requests
|
| 4 |
from bs4 import BeautifulSoup
|
| 5 |
from fpdf import FPDF
|
| 6 |
+
import tempfile
|
| 7 |
|
| 8 |
+
# Use a safe temp directory (writable on Hugging Face)
|
| 9 |
+
OUT_DIR = tempfile.gettempdir()
|
|
|
|
| 10 |
|
| 11 |
def scrape_website(url):
|
| 12 |
"""Scrape text content from a webpage."""
|