Spaces:
Sleeping
Sleeping
set to HF_API_TOKEN
Browse files
app.py
CHANGED
@@ -13,7 +13,8 @@ import re
|
|
13 |
|
14 |
# Load API key from environment variables
|
15 |
HF_API_TOKEN = os.getenv("HUG_TOKEN_READ2")
|
16 |
-
|
|
|
17 |
|
18 |
# Hugging Face Inference API Client
|
19 |
#client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.1", token=HF_API_TOKEN)
|
@@ -24,7 +25,7 @@ HF_INF_KEY = os.getenv("INF_NEBIUS")
|
|
24 |
client = InferenceClient(
|
25 |
provider="nebius",
|
26 |
#api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxx",
|
27 |
-
api_key=
|
28 |
)
|
29 |
|
30 |
# 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_PROVIDERS_TOKEN
|
17 |
+
#HF_INF_KEY = os.getenv("INF_NEBIUS")
|
18 |
|
19 |
# Hugging Face Inference API Client
|
20 |
#client = InferenceClient(model="mistralai/Mistral-7B-Instruct-v0.1", token=HF_API_TOKEN)
|
|
|
25 |
client = InferenceClient(
|
26 |
provider="nebius",
|
27 |
#api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxx",
|
28 |
+
api_key=HF_API_TOKEN
|
29 |
)
|
30 |
|
31 |
# Function to translate text into emojis
|