Anas Awadalla
commited on
Commit
·
0f23291
1
Parent(s):
587e0bc
add cache
Browse files- src/streamlit_app.py +4 -1
src/streamlit_app.py
CHANGED
@@ -1,10 +1,13 @@
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import altair as alt
|
4 |
from huggingface_hub import HfApi, hf_hub_download
|
5 |
import json
|
6 |
from pathlib import Path
|
7 |
-
import os
|
8 |
from typing import Dict, List, Optional
|
9 |
import numpy as np
|
10 |
|
|
|
1 |
+
import os
|
2 |
+
# Set HF_HOME for caching
|
3 |
+
os.environ["HF_HOME"] = "../src/data_cache"
|
4 |
+
|
5 |
import streamlit as st
|
6 |
import pandas as pd
|
7 |
import altair as alt
|
8 |
from huggingface_hub import HfApi, hf_hub_download
|
9 |
import json
|
10 |
from pathlib import Path
|
|
|
11 |
from typing import Dict, List, Optional
|
12 |
import numpy as np
|
13 |
|