kh-CHEUNG commited on
Commit
5946eab
1 Parent(s): 2086a64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ terminators = [
43
  """
44
  from huggingface_hub import InferenceClient
45
  model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
46
- client = InferenceClient(model_id, api_key="HF_TOKEN")
47
 
48
  embeddings_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-mpnet-base-v2")
49
 
 
43
  """
44
  from huggingface_hub import InferenceClient
45
  model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
46
+ client = InferenceClient(model=model_id, token="HF_TOKEN")
47
 
48
  embeddings_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-mpnet-base-v2")
49