JairoCesar commited on
Commit
38a3f3a
verified
1 Parent(s): f071f03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -16
app.py CHANGED
@@ -1,4 +1,4 @@
1
- # ==================== El Detective de Alimentos
2
  # JAIRO CESAR ALEXANDER E. MD DIANA MILENA SOLER MARTINEZ PSI. ESP. U JUAN N CORPAS
3
  import streamlit as st
4
  import google.generativeai as genai
@@ -61,8 +61,6 @@ COMPOUND_SYNONYM_MAP = {
61
  "prote铆nas": ["protein", "amino acid"],
62
  "az煤car": ["sugar", "sucrose", "glucose", "fructose"],
63
  "fibra": ["fiber", "cellulose", "inulin", "pectin"],
64
-
65
- # --- Fitoqu铆micos y Antinutrientes ---
66
  "polifenoles": ["polyphenol", "flavonoid", "catechin", "quercetin", "anthocyanin"],
67
  "lectinas": ["lectin", "agglutinin"],
68
  "oxalatos": ["oxalate", "oxalic acid"],
@@ -71,35 +69,23 @@ COMPOUND_SYNONYM_MAP = {
71
  "taninos": ["tannin", "tannic acid"],
72
  "goitr贸genos": ["goitrogen", "glucosinolate", "isothiocyanate"],
73
  "saponinas": ["saponin"],
74
-
75
- # --- FODMAPs (Grupos Fermentables) ---
76
  "fodmaps": ["fodmap", "fructan", "oligosaccharide", "polyol", "sorbitol", "mannitol", "gos"],
77
  "fructanos": ["fructan", "inulin"],
78
  "polioles": ["polyol", "sorbitol", "mannitol", "xylitol"],
79
-
80
- # --- Aminas y Estimulantes ---
81
  "aminas": ["amine", "histamine", "tyramine", "phenylethylamine", "putrescine", "cadaverine"],
82
  "histamina": ["histamine"],
83
  "tiramina": ["tyramine"],
84
  "cafe铆na": ["caffeine", "xanthine", "theobromine", "theophylline"],
85
-
86
- # --- Aditivos y Compuestos de Procesamiento ---
87
  "glutamato": ["glutamate", "glutamic acid", "msg"],
88
  "sulfitos": ["sulfite", "sulphite"],
89
  "nitritos": ["nitrite"],
90
  "nitratos": ["nitrate"],
91
  "aspartamo": ["aspartame"],
92
-
93
- # --- Alcohol y Metabolitos ---
94
  "alcohol": ["alcohol", "ethanol"],
95
  "acetaldeh铆do": ["acetaldehyde"],
96
-
97
- # --- L脥PIDOS (GRASAS) ---
98
  "omega-3": ["omega-3", "dha", "epa", "ala", "docosahexaenoic acid", "eicosapentaenoic acid"],
99
  "grasas trans": ["trans fat", "trans fatty acid"],
100
  "olestra": ["olestra"],
101
-
102
- # --- Micotoxinas (de Mohos) ---
103
  "micotoxinas": ["mycotoxin", "aflatoxin", "ochratoxin", "fumonisin", "zearalenone"],
104
  "aflatoxinas": ["aflatoxin"],
105
  "ocratoxinas": ["ochratoxin"],
@@ -1080,7 +1066,7 @@ def generate_neuro_report_text(entities, food_map, neuro_map):
1080
  """
1081
  Genera una secci贸n de texto para el informe de Word sobre los efectos neuropsicol贸gicos.
1082
  """
1083
- report_lines = ["\n\n" + "="*50, "馃 POSIBLES EFECTOS NEUROPSICOL脫GICOS DE LOS COMPONENTES", "="*50 + "\n"]
1084
  user_foods = entities.get("alimentos", [])
1085
  relevant_compounds = set()
1086
  if user_foods:
 
1
+ # El Detective de Alimentos
2
  # JAIRO CESAR ALEXANDER E. MD DIANA MILENA SOLER MARTINEZ PSI. ESP. U JUAN N CORPAS
3
  import streamlit as st
4
  import google.generativeai as genai
 
61
  "prote铆nas": ["protein", "amino acid"],
62
  "az煤car": ["sugar", "sucrose", "glucose", "fructose"],
63
  "fibra": ["fiber", "cellulose", "inulin", "pectin"],
 
 
64
  "polifenoles": ["polyphenol", "flavonoid", "catechin", "quercetin", "anthocyanin"],
65
  "lectinas": ["lectin", "agglutinin"],
66
  "oxalatos": ["oxalate", "oxalic acid"],
 
69
  "taninos": ["tannin", "tannic acid"],
70
  "goitr贸genos": ["goitrogen", "glucosinolate", "isothiocyanate"],
71
  "saponinas": ["saponin"],
 
 
72
  "fodmaps": ["fodmap", "fructan", "oligosaccharide", "polyol", "sorbitol", "mannitol", "gos"],
73
  "fructanos": ["fructan", "inulin"],
74
  "polioles": ["polyol", "sorbitol", "mannitol", "xylitol"],
 
 
75
  "aminas": ["amine", "histamine", "tyramine", "phenylethylamine", "putrescine", "cadaverine"],
76
  "histamina": ["histamine"],
77
  "tiramina": ["tyramine"],
78
  "cafe铆na": ["caffeine", "xanthine", "theobromine", "theophylline"],
 
 
79
  "glutamato": ["glutamate", "glutamic acid", "msg"],
80
  "sulfitos": ["sulfite", "sulphite"],
81
  "nitritos": ["nitrite"],
82
  "nitratos": ["nitrate"],
83
  "aspartamo": ["aspartame"],
 
 
84
  "alcohol": ["alcohol", "ethanol"],
85
  "acetaldeh铆do": ["acetaldehyde"],
 
 
86
  "omega-3": ["omega-3", "dha", "epa", "ala", "docosahexaenoic acid", "eicosapentaenoic acid"],
87
  "grasas trans": ["trans fat", "trans fatty acid"],
88
  "olestra": ["olestra"],
 
 
89
  "micotoxinas": ["mycotoxin", "aflatoxin", "ochratoxin", "fumonisin", "zearalenone"],
90
  "aflatoxinas": ["aflatoxin"],
91
  "ocratoxinas": ["ochratoxin"],
 
1066
  """
1067
  Genera una secci贸n de texto para el informe de Word sobre los efectos neuropsicol贸gicos.
1068
  """
1069
+ report_lines = ["\n\n" + "="*50, "馃 POSIBLES EFECTOS NEUROPSICOL脫GICOS DE LOS COMPONENTES (no incluye contaminantes)", "="*50 + "\n"]
1070
  user_foods = entities.get("alimentos", [])
1071
  relevant_compounds = set()
1072
  if user_foods: