leonarb commited on
Commit
78640a7
·
verified ·
1 Parent(s): 80deca1

Update app.py

Browse files

Fix cache issues by using tmp directory

Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -9,9 +9,6 @@ os.environ["TORCH_HOME"] = cache_dir
9
  # Create the directory if it doesn't exist
10
  os.makedirs(cache_dir, exist_ok=True)
11
 
12
- # Ensure the directory exists
13
- os.makedirs("/data/.cache", exist_ok=True)
14
-
15
  import gradio as gr
16
  import torch
17
  from PyPDF2 import PdfReader
 
9
  # Create the directory if it doesn't exist
10
  os.makedirs(cache_dir, exist_ok=True)
11
 
 
 
 
12
  import gradio as gr
13
  import torch
14
  from PyPDF2 import PdfReader