Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from mistralai.models.chat_completion import ChatMessage
|
|
9 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
10 |
"""
|
11 |
#client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
12 |
-
client = MistralClient(api_key=mistral_api_key)
|
13 |
|
14 |
|
15 |
# Function to get chat response
|
|
|
9 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
10 |
"""
|
11 |
#client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
12 |
+
client = MistralClient(api_key= os.getenv('mistral_api_key'))
|
13 |
|
14 |
|
15 |
# Function to get chat response
|