ai01firebird commited on
Commit
e565ab3
·
verified ·
1 Parent(s): 9b23eab

Use nebius key

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -13,6 +13,7 @@ import re
13
 
14
  # Load API key from environment variables
15
  HF_API_TOKEN = os.getenv("HUG_TOKEN_READ2")
 
16
 
17
  # Hugging Face Inference API Client
18
  #client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.1", token=HF_API_TOKEN)
@@ -22,7 +23,8 @@ HF_API_TOKEN = os.getenv("HUG_TOKEN_READ2")
22
  #client = InferenceClient(model="openai-community/gpt2", token=HF_API_TOKEN)
23
  client = InferenceClient(
24
  provider="nebius",
25
- api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxx",
 
26
  )
27
 
28
  # Function to translate text into emojis
 
13
 
14
  # Load API key from environment variables
15
  HF_API_TOKEN = os.getenv("HUG_TOKEN_READ2")
16
+ HF_INF_KEY = os.getenv("INF_NEBIUS")
17
 
18
  # Hugging Face Inference API Client
19
  #client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.1", token=HF_API_TOKEN)
 
23
  #client = InferenceClient(model="openai-community/gpt2", token=HF_API_TOKEN)
24
  client = InferenceClient(
25
  provider="nebius",
26
+ #api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxx",
27
+ api_key=HF_INF_KEY
28
  )
29
 
30
  # Function to translate text into emojis