Update inference.py
Browse files- inference.py +3 -1
inference.py
CHANGED
@@ -4,7 +4,9 @@ import requests
|
|
4 |
import os
|
5 |
|
6 |
# Get the API key from Hugging Face Secrets
|
7 |
-
API_KEY = os.getenv("DEEPSEEK_KEY")
|
|
|
|
|
8 |
|
9 |
def deepseek_query(prompt):
|
10 |
url = "https://api.deepseek.com/v1/chat/completions"
|
|
|
4 |
import os
|
5 |
|
6 |
# Get the API key from Hugging Face Secrets
|
7 |
+
# API_KEY = os.getenv("DEEPSEEK_KEY")
|
8 |
+
API_KEY = os.getenv("DEEPSEEK_KEY", "").strip()
|
9 |
+
|
10 |
|
11 |
def deepseek_query(prompt):
|
12 |
url = "https://api.deepseek.com/v1/chat/completions"
|