Spaces:
Sleeping
Sleeping
change model to phi4 mini
Browse files
app.py
CHANGED
@@ -15,9 +15,10 @@ import re
|
|
15 |
HF_API_TOKEN = os.getenv("HUG_TOKEN")
|
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 |
|
22 |
# Function to translate text into emojis
|
23 |
def text_to_emoji(text):
|
|
|
15 |
HF_API_TOKEN = os.getenv("HUG_TOKEN")
|
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):
|