hertogateis commited on
Commit
f732b9a
·
verified ·
1 Parent(s): e8f9b0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,10 +5,11 @@ import requests
5
  st.set_page_config(page_title="DeepSeek Chatbot", page_icon="🤖", layout="wide")
6
 
7
  # API setup
 
8
  url = "https://api.hyperbolic.xyz/v1/chat/completions"
9
  headers = {
10
  "Content-Type": "application/json",
11
- "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJtaXRyYWxlc3RhcmlwZXJzYWRhQGdtYWlsLmNvbSIsImlhdCI6MTczNjUwMzQxMX0.yuIoZsH1jouAlixx_h_eQ-bltZ1sg4alrJHMHr1axvA"
12
  }
13
 
14
  # Chat history container
 
5
  st.set_page_config(page_title="DeepSeek Chatbot", page_icon="🤖", layout="wide")
6
 
7
  # API setup
8
+ API_KEY = st.secrets["API_KEY"]
9
  url = "https://api.hyperbolic.xyz/v1/chat/completions"
10
  headers = {
11
  "Content-Type": "application/json",
12
+ "Authorization": "Bearer {API_KEY}"
13
  }
14
 
15
  # Chat history container