taarhissian commited on
Commit
c1ee01e
·
verified ·
1 Parent(s): f4ea2df

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from app.pages import farmer, marketplace, health, advisor
3
+
4
+ # Navigation between pages
5
+ pages = {
6
+ "Farmer Registration": farmer.show,
7
+ "Marketplace": marketplace.show,
8
+ "Health Benefits": health.show,
9
+ "Farming Tips": advisor.show,
10
+ }
11
+
12
+ choice = st.sidebar.radio("Select a Page", list(pages.keys()))
13
+ pages[choice]()