Spaces:
Runtime error
Runtime error
基于深度学习的DGA恶意域名检测
commited on
Commit
·
9947ee1
1
Parent(s):
8e8898f
test private model
Browse files
main.py
CHANGED
@@ -6,14 +6,14 @@ from transformers import pipeline
|
|
6 |
|
7 |
varibale = os.getenv('test_variable')
|
8 |
secret = os.getenv('test_secret')
|
9 |
-
|
10 |
|
11 |
|
12 |
|
13 |
app = FastAPI()
|
14 |
|
15 |
# pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
|
16 |
-
pipe_flan = pipeline("text2text-generation", model="GooooGLE/testVulModel")
|
17 |
|
18 |
|
19 |
|
|
|
6 |
|
7 |
varibale = os.getenv('test_variable')
|
8 |
secret = os.getenv('test_secret')
|
9 |
+
token_model = os.getenv('HF_Token')
|
10 |
|
11 |
|
12 |
|
13 |
app = FastAPI()
|
14 |
|
15 |
# pipe_flan = pipeline("text2text-generation", model="google/flan-t5-small")
|
16 |
+
pipe_flan = pipeline("text2text-generation", model="GooooGLE/testVulModel",token = token_model)
|
17 |
|
18 |
|
19 |
|