iabrarzelaci commited on
Commit
b037cc8
ยท
verified ยท
1 Parent(s): 3a46aa7

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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=HF_API_TOKEN
 
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