Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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]()
|