Spaces:
Sleeping
Sleeping
Disable preprocessing
Browse files
app.py
CHANGED
|
@@ -107,8 +107,8 @@ def preprocess_yara_rules(repo_path: Path) -> Path:
|
|
| 107 |
def compile_yara_rules(repo_path: Path) -> Optional[yara.Rules]:
|
| 108 |
"""Compile YARA rules from repository with error handling"""
|
| 109 |
try:
|
| 110 |
-
processed_dir = preprocess_yara_rules(repo_path)
|
| 111 |
-
yara_files = list(
|
| 112 |
|
| 113 |
if not yara_files:
|
| 114 |
logger.warning("No YARA files found in repository")
|
|
|
|
| 107 |
def compile_yara_rules(repo_path: Path) -> Optional[yara.Rules]:
|
| 108 |
"""Compile YARA rules from repository with error handling"""
|
| 109 |
try:
|
| 110 |
+
# processed_dir = preprocess_yara_rules(repo_path)
|
| 111 |
+
yara_files = list(repo_path.glob("**/*.yara"))
|
| 112 |
|
| 113 |
if not yara_files:
|
| 114 |
logger.warning("No YARA files found in repository")
|