Update app.py
Browse files
app.py
CHANGED
@@ -238,8 +238,9 @@ def predict():
|
|
238 |
def process_dataframe(df):
|
239 |
try:
|
240 |
# Define the columns needed for two parts.
|
241 |
-
required_columns = ['Tag', 'EngCts', 'EngShp', 'EngQua', 'EngCol', 'EngCut',
|
242 |
-
|
|
|
243 |
required_columns_2 = required_columns + ['EngBlk', 'EngWht', 'EngOpen', 'EngPav']
|
244 |
|
245 |
# Create two DataFrames: one for prediction and one for classification.
|
|
|
238 |
def process_dataframe(df):
|
239 |
try:
|
240 |
# Define the columns needed for two parts.
|
241 |
+
required_columns = ['Tag', 'EngCts', 'EngShp', 'EngQua', 'EngCol', 'EngCut', 'EngPol',
|
242 |
+
'EngSym', 'EngFlo', 'EngNts', 'EngMikly', 'EngBlk', 'EngWht', 'EngOpen',
|
243 |
+
'EngPav', 'EngAmt']
|
244 |
required_columns_2 = required_columns + ['EngBlk', 'EngWht', 'EngOpen', 'EngPav']
|
245 |
|
246 |
# Create two DataFrames: one for prediction and one for classification.
|