prsingh1982 commited on
Commit
c28dc46
·
verified ·
1 Parent(s): f28d9fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,7 +4,10 @@ from huggingface_hub import InferenceClient
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
- client = InferenceClient(model="meta-llama/Meta-Llama-3-8B-Instruct", api_key="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")
 
 
 
8
 
9
 
10
  def respond(
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
6
  """
7
+ headers = {
8
+ 'Authorization': f'Bearer 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'
9
+ }
10
+ client = InferenceClient(model="meta-llama/Meta-Llama-3-8B-Instruct",headers=headers, api_key="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")
11
 
12
 
13
  def respond(