Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
@@ -13,7 +13,8 @@ load_dotenv()
|
|
13 |
|
14 |
# Together AI Client with API key from environment variable
|
15 |
client = Together(api_key=os.getenv("TOGETHER_API_KEY", ""))
|
16 |
-
|
|
|
17 |
# Set device
|
18 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
19 |
|
|
|
13 |
|
14 |
# Together AI Client with API key from environment variable
|
15 |
client = Together(api_key=os.getenv("TOGETHER_API_KEY", ""))
|
16 |
+
import os
|
17 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/hf_cache"
|
18 |
# Set device
|
19 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
20 |
|