Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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
|