Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
| 9 |
|
| 10 |
def respond(message, history, system_message, max_tokens, temperature, top_p):
|
| 11 |
# Pass the token here so the API allows the request
|
| 12 |
-
client = InferenceClient(model=MODEL_ID, token=HF_TOKEN)
|
| 13 |
|
| 14 |
messages = [{"role": "system", "content": system_message}]
|
| 15 |
for user_msg, assistant_msg in history:
|
|
|
|
| 9 |
|
| 10 |
def respond(message, history, system_message, max_tokens, temperature, top_p):
|
| 11 |
# Pass the token here so the API allows the request
|
| 12 |
+
client = InferenceClient(model=MODEL_ID, token=HF_TOKEN, provider="hf-inference")
|
| 13 |
|
| 14 |
messages = [{"role": "system", "content": system_message}]
|
| 15 |
for user_msg, assistant_msg in history:
|