Spaces:
Sleeping
Sleeping
Remove async for yara match
Browse files
app.py
CHANGED
|
@@ -350,7 +350,7 @@ async def analyse_bin(file_name: str):
|
|
| 350 |
os.remove(temp_image)
|
| 351 |
|
| 352 |
@app.get("/analyse/yara/{file_name}")
|
| 353 |
-
|
| 354 |
"""Analyze file using YARA rules from the GitHub repository"""
|
| 355 |
sanitized_name = Path(file_name).name
|
| 356 |
file_path = os.path.join(UPLOAD_DIR, sanitized_name)
|
|
|
|
| 350 |
os.remove(temp_image)
|
| 351 |
|
| 352 |
@app.get("/analyse/yara/{file_name}")
|
| 353 |
+
def analyse_yara(file_name: str):
|
| 354 |
"""Analyze file using YARA rules from the GitHub repository"""
|
| 355 |
sanitized_name = Path(file_name).name
|
| 356 |
file_path = os.path.join(UPLOAD_DIR, sanitized_name)
|