Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -4
src/streamlit_app.py
CHANGED
@@ -9,15 +9,14 @@ import streamlit as st
|
|
9 |
from huggingface_hub import InferenceClient
|
10 |
import json
|
11 |
|
12 |
-
# Load Hugging Face token
|
13 |
-
HF_API_TOKEN = st.secrets["hf_token"]
|
14 |
-
|
15 |
# Initialize Hugging Face client
|
16 |
client = InferenceClient(
|
17 |
provider="cohere",
|
18 |
-
api_key=
|
|
|
19 |
)
|
20 |
|
|
|
21 |
# Page config
|
22 |
st.set_page_config(page_title="ุดููููู โ ู
ุณุงุนุฏู ุงูุฐูู", page_icon="๐๏ธ", layout="centered")
|
23 |
|
|
|
9 |
from huggingface_hub import InferenceClient
|
10 |
import json
|
11 |
|
|
|
|
|
|
|
12 |
# Initialize Hugging Face client
|
13 |
client = InferenceClient(
|
14 |
provider="cohere",
|
15 |
+
# api_key= st.secrets["hf_token"]
|
16 |
+
api_key = os.getenv("hf_token")
|
17 |
)
|
18 |
|
19 |
+
|
20 |
# Page config
|
21 |
st.set_page_config(page_title="ุดููููู โ ู
ุณุงุนุฏู ุงูุฐูู", page_icon="๐๏ธ", layout="centered")
|
22 |
|