Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
@@ -14,9 +14,9 @@ load_dotenv()
|
|
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[
|
18 |
-
|
19 |
-
|
20 |
# Set device
|
21 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
22 |
|
|
|
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["HF_HOME"] = "/home/user/huggingface"
|
18 |
+
|
19 |
+
|
20 |
# Set device
|
21 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
22 |
|