Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -374,8 +374,10 @@ async def analyse_bin(file_name: str):
|
|
| 374 |
convert_binary_to_image(file_path, temp_image, width)
|
| 375 |
img_array = await process_image(temp_image)
|
| 376 |
result = predict_malware(img_array)
|
| 377 |
-
|
| 378 |
-
|
|
|
|
|
|
|
| 379 |
|
| 380 |
except HTTPException as he:
|
| 381 |
raise he
|
|
|
|
| 374 |
convert_binary_to_image(file_path, temp_image, width)
|
| 375 |
img_array = await process_image(temp_image)
|
| 376 |
result = predict_malware(img_array)
|
| 377 |
+
return {
|
| 378 |
+
"result": result,
|
| 379 |
+
"image_location": str(temp_image)
|
| 380 |
+
}
|
| 381 |
|
| 382 |
except HTTPException as he:
|
| 383 |
raise he
|