File size: 2,574 Bytes
22acaeb
3150072
 
 
 
2df07f7
 
3150072
22acaeb
 
 
 
3150072
22acaeb
3150072
 
22acaeb
 
 
 
3150072
22acaeb
3150072
 
22acaeb
 
 
 
3150072
22acaeb
3150072
 
22acaeb
 
 
 
3150072
22acaeb
3150072
 
22acaeb
 
 
2df07f7
3150072
2df07f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import funciones
from fastapi import FastAPI

app = FastAPI()

#NUTRICI脫N

#1.- Obtener distribuci贸n macronutrientes.
@app.post(
        "/macronutrientes/",
        tags=["Nutrici贸n"],
        summary="1.- Obtener Distribuci贸n de Macronutrientes")
async def macronutrientes(prompt: str):
    return funciones.getMacronutrientes(prompt)
    
#2.- Obtener distribuci贸n comidas.
@app.post(
        "/comidas/",
        tags=["Nutrici贸n"],
        summary="2.- Obtener Distribuci贸n de Comidas Durante el D铆a")
async def comidas(prompt: str):
    return funciones.getComidas(prompt)

#3.- Obtener lista alimentos.
@app.post(
        "/lista_alimentos/",
        tags=["Nutrici贸n"],
        summary="Nutrici贸n: 3.- Obtener Alimentos para una Comida")
async def lista_alimentos(prompt: str):
    return funciones.getAlimentos(prompt)

#4.- Obtener receta.
@app.post(
        "/receta/",
        tags=["Nutrici贸n"],
        summary="Nutrici贸n: 4.- Generar Receta para una Comida")
async def receta(prompt: str):
    return funciones.getReceta(prompt)

#5.- Sustituir alimento.
@app.post(
        "/sustituir_alimento/",
        tags=["Nutrici贸n"],
        summary="Nutrici贸n: 5.- Sustituir Alimento ")
async def sustituir_alimento(prompt: str):
    return funciones.getSustitucion(prompt)

#ENTRENAMIENTO

#1.- Obtener distribuci贸n de grupos musculares.
@app.post(
        "/distribucion_musculos/",
        tags=["Entrenamiento"],
        summary="1.- Obtener Distribuci贸n de Grupos Musculares")
async def macronutrientes(prompt: str):
    return funciones.getDistribucionGruposMusculares(prompt)

#2.- Obtener ejercicios.
@app.post(
        "/ejercicios/",
        tags=["Entrenamiento"],
        summary="2.- Obtener Selecci贸n de Ejercicios")
async def macronutrientes(prompt: str):
    return funciones.getEjercicios(prompt)

#3.- Obtener distribuci贸n por bloques.
@app.post(
        "/bloques/",
        tags=["Entrenamiento"],
        summary="3A.- Obtener Distribuci贸n de Bloques")
async def macronutrientes(prompt: str):
    return funciones.getBloques(prompt)

#4.- Obtener distribuci贸n en circuito.
@app.post(
        "/circuito/",
        tags=["Entrenamiento"],
        summary="3B.- Obtener Distribuci贸n en Circuito")
async def macronutrientes(prompt: str):
    return funciones.getCircuito(prompt)

#5.- Obtener distribuci贸n en sumatoria.
@app.post(
        "/sumatoria/",
        tags=["Entrenamiento"],
        summary="3C.- Obtener Distribuci贸n en Sumatoria")
async def macronutrientes(prompt: str):
    return funciones.getSumatoria(prompt)