Jyotiyadav commited on
Commit
41ecc0a
1 Parent(s): bee30a9

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -1,8 +1,9 @@
1
  from ctransformers import AutoModelForCausalLM
2
  from fastapi import FastAPI
3
  from pydantic import BaseModel
 
4
 
5
- llm = AutoModelForCausalLM.from_pretrained("zephyr-7b-beta.Q4_K_S.gguf")
6
 
7
  #Pydantic object
8
  class validation(BaseModel):
 
1
  from ctransformers import AutoModelForCausalLM
2
  from fastapi import FastAPI
3
  from pydantic import BaseModel
4
+ auth_token = os.environ.get("HUGGING_FACE_HUB_TOKEN")
5
 
6
+ llm = AutoModelForCausalLM.from_pretrained("zephyr-7b-beta.Q4_K_S.gguf",use_auth_token=auth_token)
7
 
8
  #Pydantic object
9
  class validation(BaseModel):