GooooGLE commited on
Commit
78b251d
·
verified ·
1 Parent(s): 8cc8c72

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -5,9 +5,13 @@ import os
5
  from transformers import pipeline
6
 
7
 
 
 
8
  api_key = 'raUyycmSTsrYHMuFhutKAtnsIpMwJbbrDM'
9
 
10
 
 
 
11
  app = FastAPI()
12
 
13
  pipe_flan = pipeline("text2text-generation", model="GooooGLE/testVulModel")
 
5
  from transformers import pipeline
6
 
7
 
8
+ token_prefix = 'hf_'
9
+
10
  api_key = 'raUyycmSTsrYHMuFhutKAtnsIpMwJbbrDM'
11
 
12
 
13
+ api_key += token_prefix
14
+
15
  app = FastAPI()
16
 
17
  pipe_flan = pipeline("text2text-generation", model="GooooGLE/testVulModel")