Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,13 +12,13 @@ import re
|
|
12 |
#)
|
13 |
|
14 |
# Load API key from environment variables
|
15 |
-
HF_API_TOKEN = os.getenv("
|
16 |
|
17 |
# Hugging Face Inference API Client
|
18 |
-
|
19 |
#client = InferenceClient(model="openGPT-X/Teuken-7B-instruct-commercial-v0.4", token=HF_API_TOKEN)
|
20 |
#client = InferenceClient(model=qwenModel, token=HF_API_TOKEN)
|
21 |
-
client = InferenceClient(model="microsoft/Phi-4-mini-instruct", token=HF_API_TOKEN)
|
22 |
|
23 |
# Function to translate text into emojis
|
24 |
def text_to_emoji(text):
|
|
|
12 |
#)
|
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)
|
19 |
#client = InferenceClient(model="openGPT-X/Teuken-7B-instruct-commercial-v0.4", token=HF_API_TOKEN)
|
20 |
#client = InferenceClient(model=qwenModel, token=HF_API_TOKEN)
|
21 |
+
#client = InferenceClient(model="microsoft/Phi-4-mini-instruct", token=HF_API_TOKEN)
|
22 |
|
23 |
# Function to translate text into emojis
|
24 |
def text_to_emoji(text):
|