galihboy commited on
Commit
64e5d8a
·
verified ·
1 Parent(s): c5ff0a8

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +0 -12
src/streamlit_app.py CHANGED
@@ -1,16 +1,4 @@
1
  import os
2
- from pathlib import Path
3
-
4
- # FIX: Set cache ke /tmp (writable di HF Spaces)
5
- os.environ["HOME"] = "/tmp"
6
- os.environ["HF_HOME"] = "/tmp/.cache/huggingface"
7
- os.environ["TRANSFORMERS_CACHE"] = "/tmp/.cache/huggingface/transformers"
8
- os.environ["SENTENCE_TRANSFORMERS_HOME"] = "/tmp/.cache/sentence-transformers"
9
- os.environ["TOKENIZERS_PARALLELISM"] = "false"
10
-
11
- # Buat folder cache
12
- Path("/tmp/.cache/huggingface").mkdir(parents=True, exist_ok=True)
13
- Path("/tmp/.cache/sentence-transformers").mkdir(parents=True, exist_ok=True)
14
 
15
  # Sekarang baru import streamlit
16
  import streamlit as st
 
1
  import os
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  # Sekarang baru import streamlit
4
  import streamlit as st