Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import numpy as np
|
|
| 6 |
app = FastAPI()
|
| 7 |
|
| 8 |
class InputData(BaseModel):
|
| 9 |
-
input1 :
|
| 10 |
input2 : float
|
| 11 |
input3 : float
|
| 12 |
input4 : float
|
|
@@ -31,4 +31,4 @@ def predict(input : InputData):
|
|
| 31 |
input.input5, input.input6,
|
| 32 |
input.input7]])
|
| 33 |
prediction = model.predict(data).tolist()
|
| 34 |
-
return {'prediction' :
|
|
|
|
| 6 |
app = FastAPI()
|
| 7 |
|
| 8 |
class InputData(BaseModel):
|
| 9 |
+
input1 : float
|
| 10 |
input2 : float
|
| 11 |
input3 : float
|
| 12 |
input4 : float
|
|
|
|
| 31 |
input.input5, input.input6,
|
| 32 |
input.input7]])
|
| 33 |
prediction = model.predict(data).tolist()
|
| 34 |
+
return {'prediction' : prediction[0]}
|