Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,6 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
9 |
import torch
|
10 |
import streamlit as st
|
11 |
|
12 |
-
st.set_page_config(
|
13 |
-
page_title="Prospira",
|
14 |
-
page_icon="π",
|
15 |
-
layout="wide",
|
16 |
-
initial_sidebar_state="expanded"
|
17 |
-
)
|
18 |
# --- Data Processing Class ---
|
19 |
class DataProcessor:
|
20 |
def __init__(self):
|
@@ -431,25 +425,30 @@ def render_chat():
|
|
431 |
|
432 |
# Replace the existing render_chat() function in your main.py with this implementation
|
433 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
st.session_state.page = "Dashboard"
|
445 |
-
if st.button("Analytics"):
|
446 |
-
st.session_state.page = "Analytics"
|
447 |
-
if st.button("Brainstorm"):
|
448 |
-
st.session_state.page = "Brainstorm"
|
449 |
-
if st.button("Chat"):
|
450 |
-
st.session_state.page = "Chat"
|
451 |
-
|
452 |
-
page = st.session_state.page
|
453 |
|
454 |
if __name__ == "__main__":
|
455 |
main()
|
|
|
9 |
import torch
|
10 |
import streamlit as st
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# --- Data Processing Class ---
|
13 |
class DataProcessor:
|
14 |
def __init__(self):
|
|
|
425 |
|
426 |
# Replace the existing render_chat() function in your main.py with this implementation
|
427 |
def main():
|
428 |
+
st.set_page_config(
|
429 |
+
page_title="Prospira",
|
430 |
+
page_icon="π",
|
431 |
+
layout="wide",
|
432 |
+
initial_sidebar_state="expanded"
|
433 |
+
)
|
434 |
|
435 |
+
with st.sidebar:
|
436 |
+
st.title("Prospira")
|
437 |
+
st.subheader("Data-Driven Solutions")
|
438 |
+
|
439 |
+
page = st.radio(
|
440 |
+
"Navigation",
|
441 |
+
["Dashboard", "Analytics", "Brainstorm", "Chat"]
|
442 |
+
)
|
443 |
|
444 |
+
if page == "Dashboard":
|
445 |
+
render_dashboard()
|
446 |
+
elif page == "Analytics":
|
447 |
+
render_analytics()
|
448 |
+
elif page == "Brainstorm":
|
449 |
+
render_brainstorm_page()
|
450 |
+
elif page == "Chat":
|
451 |
+
render_chat()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
|
453 |
if __name__ == "__main__":
|
454 |
main()
|