Canstralian commited on
Commit
ac9c113
·
verified ·
1 Parent(s): c35e2a7

Create config.py

Browse files
Files changed (1) hide show
  1. config.py +9 -0
config.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ # Configuration for the CyberAttackDetection model
4
+ class Config:
5
+ MODEL_NAME = "Canstralian/CyberAttackDetection"
6
+ TOKENIZER_NAME = "Canstralian/CyberAttackDetection"
7
+ MAX_LENGTH = 512
8
+ DEVICE = "cuda" if os.environ.get("USE_CUDA", "1") == "1" else "cpu"
9
+ PROMPTS_FILE = "prompts.py"