Spaces:
Sleeping
Sleeping
| import funciones | |
| from fastapi import FastAPI | |
| app = FastAPI() | |
| #NUTRICI脫N | |
| #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) | |
| #ENTRENAMIENTO | |
| #1.- Obtener distribuci贸n de grupos musculares. | |
| async def macronutrientes(prompt: str): | |
| return funciones.getDistribucionGruposMusculares(prompt) | |
| #2.- Obtener ejercicios. | |
| async def macronutrientes(prompt: str): | |
| return funciones.getEjercicios(prompt) | |
| #3.- Obtener distribuci贸n por bloques. | |
| async def macronutrientes(prompt: str): | |
| return funciones.getBloques(prompt) | |
| #4.- Obtener distribuci贸n en circuito. | |
| async def macronutrientes(prompt: str): | |
| return funciones.getCircuito(prompt) | |
| #5.- Obtener distribuci贸n en sumatoria. | |
| async def macronutrientes(prompt: str): | |
| return funciones.getSumatoria(prompt) | |
| #6.- Obtener distribuci贸n de cardio. | |
| async def macronutrientes(prompt: str): | |
| return funciones.getSumatoria(prompt) |