NutrigenieLLM / client /pages /user__course_list.py
Sahm269's picture
Upload 22 files
7bd7bef verified
raw
history blame
422 Bytes
import streamlit as st
from server.db.db import get_ingredients
# Page des courses
def course_list():
st.write("Voici votre liste des courses.")
ingredients_list = get_ingredients()
if ingredients_list:
for ingredient in ingredients_list:
st.write(f"🍎 {ingredient[0]}")
else:
st.write("Aucun ingrédient trouvé.")
st.checkbox("Ajouter un nouvel article")