Spaces:
Running
Running
Update app.py
Browse filesFix cache issues by using tmp directory
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
|