aymnsk commited on
Commit
64b7867
·
verified ·
1 Parent(s): e15f17f

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -5
inference.py CHANGED
@@ -1,13 +1,9 @@
1
- # inference.py
2
-
3
  import requests
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"
13
  headers = {
 
 
 
1
  import requests
2
  import os
3
 
4
+ # Fix: remove any accidental newline in the secret
 
5
  API_KEY = os.getenv("DEEPSEEK_KEY", "").strip()
6
 
 
7
  def deepseek_query(prompt):
8
  url = "https://api.deepseek.com/v1/chat/completions"
9
  headers = {