Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -2
src/streamlit_app.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import torch
|
| 3 |
import os
|
|
@@ -13,8 +16,7 @@ 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 |
-
os.environ["HF_HOME"] = "/home/user/huggingface"
|
| 18 |
|
| 19 |
|
| 20 |
# Set device
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
os.environ["HF_HOME"] = "/home/user/huggingface"
|
| 3 |
+
|
| 4 |
import streamlit as st
|
| 5 |
import torch
|
| 6 |
import os
|
|
|
|
| 16 |
|
| 17 |
# Together AI Client with API key from environment variable
|
| 18 |
client = Together(api_key=os.getenv("TOGETHER_API_KEY", ""))
|
| 19 |
+
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
# Set device
|