-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.py
More file actions
38 lines (30 loc) · 1.03 KB
/
app.py
File metadata and controls
38 lines (30 loc) · 1.03 KB
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
import streamlit as st
import numpy as np
import pandas as pd
import plotly.express as px
#import requests
#import openai
#from utils.barcode_lookup import fetch_product_data, is_food_item
#from utils.drug_list import fetch_drug_list
#from utils.analysis import analyze_interaction
st.set_page_config(page_title="NutriSafe", layout="centered")
# Load Custom CSS
with open("styles.css") as f:
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
col1, col2 = st.columns([0.15, 0.85])
with col1:
st.image("assets/nutrisafe_logo.png")
with col2:
st.title("Welcome to NutriSafe!")
# Configure sidebar for multiple pages
pages = {
"": [
st.Page("how_it_works.py", title="Learn About NutriSafe"),
st.Page("check_food_safety.py", title="Try NutriSafe Out"),
st.Page("recipes.py", title="Get Healthy Recipes")
],
"Have more health questions?": [st.Page("AI_chat_bot.py", title="Talk to our AI-chat bot!")],
}
pg = st.navigation(pages)
pg.run()
st.logo("assets/nutrisafe_small_logo.png")