Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,28 +16,35 @@ def switch_page(page_name):
|
|
| 16 |
|
| 17 |
# Home page with buttons for different domains
|
| 18 |
if st.session_state.page == "home":
|
| 19 |
-
st.title("๐ค ChatGenius Hub
|
| 20 |
st.markdown("Choose a domain to chat with an expert model:")
|
| 21 |
|
| 22 |
col1, col2, col3 = st.columns(3)
|
| 23 |
with col1:
|
| 24 |
if st.button("Python ๐"):
|
| 25 |
switch_page("python")
|
| 26 |
-
if st.button("
|
| 27 |
-
switch_page("
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
with col2:
|
| 31 |
if st.button("SQL ๐ข๏ธ"):
|
| 32 |
switch_page("sql")
|
| 33 |
-
if st.button("
|
| 34 |
-
switch_page("
|
|
|
|
| 35 |
|
| 36 |
with col3:
|
| 37 |
if st.button("Power BI ๐"):
|
| 38 |
-
switch_page("powerbi")
|
| 39 |
-
if st.button("
|
| 40 |
-
switch_page("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
# Example domain-specific chatbot page
|
| 43 |
elif st.session_state.page == "python":
|
|
@@ -66,6 +73,10 @@ elif st.session_state.page == "statistics":
|
|
| 66 |
st.title("Statistics Chatbot ๐")
|
| 67 |
st.button("โฌ
๏ธ Back to Home", on_click=lambda: switch_page("home"))
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
|
|
|
|
| 16 |
|
| 17 |
# Home page with buttons for different domains
|
| 18 |
if st.session_state.page == "home":
|
| 19 |
+
st.title("๐ค Innomatics ChatGenius Hub")
|
| 20 |
st.markdown("Choose a domain to chat with an expert model:")
|
| 21 |
|
| 22 |
col1, col2, col3 = st.columns(3)
|
| 23 |
with col1:
|
| 24 |
if st.button("Python ๐"):
|
| 25 |
switch_page("python")
|
| 26 |
+
if st.button("Statistics ๐"):
|
| 27 |
+
switch_page("statistics")
|
| 28 |
+
|
| 29 |
|
| 30 |
|
| 31 |
with col2:
|
| 32 |
if st.button("SQL ๐ข๏ธ"):
|
| 33 |
switch_page("sql")
|
| 34 |
+
if st.button("Machine Learning ๐ค"):
|
| 35 |
+
switch_page("ml")
|
| 36 |
+
|
| 37 |
|
| 38 |
with col3:
|
| 39 |
if st.button("Power BI ๐"):
|
| 40 |
+
switch_page("powerbi")
|
| 41 |
+
if st.button("Deep Learning ๐ง "):
|
| 42 |
+
switch_page("deeplearning")
|
| 43 |
+
with col2:
|
| 44 |
+
if st.button("GenAI๐ฎ๐ค"):
|
| 45 |
+
switch_page("genai")
|
| 46 |
+
|
| 47 |
+
|
| 48 |
|
| 49 |
# Example domain-specific chatbot page
|
| 50 |
elif st.session_state.page == "python":
|
|
|
|
| 73 |
st.title("Statistics Chatbot ๐")
|
| 74 |
st.button("โฌ
๏ธ Back to Home", on_click=lambda: switch_page("home"))
|
| 75 |
|
| 76 |
+
elif st.session_state.page == "genai":
|
| 77 |
+
st.title("GenAI Chatbot ๐")
|
| 78 |
+
st.button("โฌ
๏ธ Back to Home", on_click=lambda: switch_page("home"))
|
| 79 |
+
|
| 80 |
|
| 81 |
|
| 82 |
|