maaz21 commited on
Commit
5a0a5cc
·
verified ·
1 Parent(s): 0d79f8e

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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 writable folder inside the working directory
8
- OUT_DIR = "outputs"
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."""