Parthebhan commited on
Commit
5730cd5
·
verified ·
1 Parent(s): 0b7b2eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,10 +7,11 @@ app=FastAPI()
7
  import os
8
 
9
  api_key = os.getenv("HF_API_KEY")
 
10
 
11
 
12
  # Initialize the text generation pipeline
13
- pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3.1-8B", use_auth_token=api_key)
14
 
15
 
16
  @app.get("/")
 
7
  import os
8
 
9
  api_key = os.getenv("HF_API_KEY")
10
+ login(token=api_key)
11
 
12
 
13
  # Initialize the text generation pipeline
14
+ pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3.1-8B")
15
 
16
 
17
  @app.get("/")