Spaces:
Sleeping
Sleeping
Xiaoqing WANG commited on
Commit ·
271d0e6
1
Parent(s): 810169e
Update app.py with latest changes
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ print("DEBUG TOKEN:", os.getenv("mytokenvivi"))
|
|
| 7 |
|
| 8 |
# Load token from env variable (must be set as a Secret in Hugging Face Space)
|
| 9 |
token = os.getenv("mytokenvivi")
|
| 10 |
-
client = InferenceClient("
|
| 11 |
|
| 12 |
def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p):
|
| 13 |
messages = [{"role": "system", "content": system_message}]
|
|
|
|
| 7 |
|
| 8 |
# Load token from env variable (must be set as a Secret in Hugging Face Space)
|
| 9 |
token = os.getenv("mytokenvivi")
|
| 10 |
+
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1", token=token)
|
| 11 |
|
| 12 |
def respond(message, history: list[tuple[str, str]], system_message, max_tokens, temperature, top_p):
|
| 13 |
messages = [{"role": "system", "content": system_message}]
|