This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| import numpy as np | |
| from fastapi import FastAPI, UploadFile, File, HTTPException | |
| from PIL import Image | |
| import io | |
| import json | |
| #funcion de preprocesamiento de ResNet50 | |
| from tensorflow.keras.applications.resnet50 import preprocess_input |