Spaces:
Sleeping
Sleeping
import funciones | |
from fastapi import FastAPI | |
app = FastAPI() | |
#1.- Obtener distribuci贸n macronutrientes. | |
async def macronutrientes(prompt: str): | |
return funciones.getMacronutrientes(prompt) | |
#2.- Obtener distribuci贸n comidas. | |
async def comidas(prompt: str): | |
return funciones.getComidas(prompt) | |
#3.- Obtener lista alimentos. | |
async def lista_alimentos(prompt: str): | |
return funciones.getAlimentos(prompt) | |
#4.- Obtener receta. | |
async def receta(prompt: str): | |
return funciones.getReceta(prompt) | |
#5.- Sustituir alimento. | |
async def sustituir_alimento(prompt: str): | |
return funciones.getSustitucion(prompt) |