Spaces:
Runtime error
Runtime error
Commit ·
f675048
1
Parent(s): 0bdff54
Update stack
Browse files
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 👁
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 4.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.29.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
app.py
CHANGED
|
@@ -10,7 +10,7 @@ examples = ["Comment fait on pour produire du maïs ?", "Rédige moi une lettre
|
|
| 10 |
api_key = os.environ.get("MISTRAL_API_KEY")
|
| 11 |
|
| 12 |
client = MistralClient(api_key=api_key)
|
| 13 |
-
model = '
|
| 14 |
|
| 15 |
def chat_with_mistral(user_input, history):
|
| 16 |
messages = [ChatMessage(role="user", content=user_input)]
|
|
|
|
| 10 |
api_key = os.environ.get("MISTRAL_API_KEY")
|
| 11 |
|
| 12 |
client = MistralClient(api_key=api_key)
|
| 13 |
+
model = 'open-mixtral-8x7b'
|
| 14 |
|
| 15 |
def chat_with_mistral(user_input, history):
|
| 16 |
messages = [ChatMessage(role="user", content=user_input)]
|