Spaces:
Sleeping
Sleeping
fadhilelrizanda
commited on
Commit
•
b82e786
1
Parent(s):
455e9b5
test3
Browse files
app.py
CHANGED
@@ -30,14 +30,14 @@ async def predict_and_add(data: dict):
|
|
30 |
raise HTTPException(status_code=400, detail="Please provide correct values")
|
31 |
|
32 |
# Scale and predict
|
33 |
-
input_bagemann = np.array([[HL
|
34 |
bagemann_scaled = scaler_bagemann.transform(input_bagemann)
|
35 |
prediction_bagemann = model_bagemann.predict(bagemann_scaled)
|
36 |
predicted_class_bagemann = int(np.argmax(prediction_bagemann, axis=1)[0])
|
37 |
|
38 |
# Scale and predict
|
39 |
input_shertmann = np.array([[HB,FR]])
|
40 |
-
shertmann_scaled =
|
41 |
prediction_shertmann = model_shertmann.predict(shertmann_scaled)
|
42 |
predicted_class_shertmann = int(np.argmax(prediction_shertmann, axis=1)[0])
|
43 |
|
|
|
30 |
raise HTTPException(status_code=400, detail="Please provide correct values")
|
31 |
|
32 |
# Scale and predict
|
33 |
+
input_bagemann = np.array([[HB,HL]])
|
34 |
bagemann_scaled = scaler_bagemann.transform(input_bagemann)
|
35 |
prediction_bagemann = model_bagemann.predict(bagemann_scaled)
|
36 |
predicted_class_bagemann = int(np.argmax(prediction_bagemann, axis=1)[0])
|
37 |
|
38 |
# Scale and predict
|
39 |
input_shertmann = np.array([[HB,FR]])
|
40 |
+
shertmann_scaled = scaler_shertmann.transform(input_shertmann)
|
41 |
prediction_shertmann = model_shertmann.predict(shertmann_scaled)
|
42 |
predicted_class_shertmann = int(np.argmax(prediction_shertmann, axis=1)[0])
|
43 |
|