Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,12 @@ def clean_numeric(val):
|
|
| 45 |
# PREDICTION FUNCTION
|
| 46 |
# ======================
|
| 47 |
def predict_malware_csv(file):
|
| 48 |
-
df = pd.read_csv(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
# Check missing features
|
| 51 |
missing = set(feature_names) - set(df.columns)
|
|
|
|
| 45 |
# PREDICTION FUNCTION
|
| 46 |
# ======================
|
| 47 |
def predict_malware_csv(file):
|
| 48 |
+
df = pd.read_csv(
|
| 49 |
+
file.name,
|
| 50 |
+
sep=';',
|
| 51 |
+
engine='python',
|
| 52 |
+
dtype=str
|
| 53 |
+
)
|
| 54 |
|
| 55 |
# Check missing features
|
| 56 |
missing = set(feature_names) - set(df.columns)
|