hieu3636 commited on
Commit
9f19f6e
·
verified ·
1 Parent(s): 1d2f225

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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(file.name)
 
 
 
 
 
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)