Bunpheng commited on
Commit
cab2af5
·
verified ·
1 Parent(s): c6cdb3c
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ app = FastAPI()
6
 
7
  hf_token = os.getenv('HUGGINGFACE_HUB_TOKEN')
8
 
9
- model = AutoModelForCausalLM.from_pretrained("mistral/Mistral-7B-Instruct-v0.3", use_auth_token=hf_token)
10
- tokenizer = AutoTokenizer.from_pretrained("mistral/Mistral-7B-Instruct-v0.3")
11
 
12
  @app.post("/inference")
13
  async def inference(prompt: str):
 
6
 
7
  hf_token = os.getenv('HUGGINGFACE_HUB_TOKEN')
8
 
9
+ model = AutoModelForCausalLM.from_pretrained("mistral/Mistral-7B-v0.3", use_auth_token=hf_token)
10
+ tokenizer = AutoTokenizer.from_pretrained("mistral/Mistral-7B-v0.3")
11
 
12
  @app.post("/inference")
13
  async def inference(prompt: str):