Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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")
|