Spaces:
Sleeping
Sleeping
JairoDanielMT
commited on
Commit
•
38d9065
1
Parent(s):
6c6f69c
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ from fastapi import FastAPI, HTTPException
|
|
2 |
from keras.models import model_from_json
|
3 |
from pydantic import BaseModel
|
4 |
import numpy as np
|
|
|
5 |
|
6 |
-
# Definición del modelo de datos de entrada
|
7 |
class InputData(BaseModel):
|
8 |
-
data:
|
9 |
-
|
10 |
app = FastAPI()
|
11 |
model = None # Inicializa el modelo como None
|
12 |
|
|
|
2 |
from keras.models import model_from_json
|
3 |
from pydantic import BaseModel
|
4 |
import numpy as np
|
5 |
+
from typing import List
|
6 |
|
|
|
7 |
class InputData(BaseModel):
|
8 |
+
data: List[float] # Lista de características numéricas (flotantes)
|
9 |
+
|
10 |
app = FastAPI()
|
11 |
model = None # Inicializa el modelo como None
|
12 |
|