eleeter commited on
Commit
0216b0d
·
verified ·
1 Parent(s): a849a08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: