Spaces:
Runtime error
Runtime error
fracapuano
commited on
Commit
•
33f32e6
1
Parent(s):
07b1b19
fix: UI restructuring
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
-
st.
|
4 |
-
|
|
|
|
|
5 |
expander = st.expander("Click here to close this intro", expanded=True)
|
6 |
expander.write(
|
7 |
"""
|
@@ -12,24 +15,28 @@ expander.write(
|
|
12 |
Happy hackathon!
|
13 |
"""
|
14 |
)
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
st.
|
|
|
|
|
17 |
|
18 |
-
OPTION1="Chat with a file 💬📖"
|
19 |
-
OPTION2="Text summarization 🔎"
|
20 |
-
OPTION_N="
|
21 |
|
22 |
-
col1, col2 = st.columns(2)
|
23 |
-
with col1:
|
24 |
option = st.radio(
|
25 |
"Please select a task 🤖",
|
26 |
options=[OPTION1, OPTION2, OPTION_N],
|
27 |
key="task_selection"
|
28 |
)
|
29 |
|
30 |
-
|
31 |
-
confirm
|
32 |
-
if confirm:
|
33 |
st.session_state["task_confirmed"] = True
|
34 |
|
35 |
if st.session_state.get("task_confirmed"):
|
|
|
1 |
import streamlit as st
|
2 |
+
st.set_page_config(layout="wide", page_title="2023 FS Hackathon")
|
3 |
|
4 |
+
st.markdown(
|
5 |
+
"<h1 style='text-align: center;'>Founder's Studio AI Sandbox 🕹️</h1>",
|
6 |
+
unsafe_allow_html=True
|
7 |
+
)
|
8 |
expander = st.expander("Click here to close this intro", expanded=True)
|
9 |
expander.write(
|
10 |
"""
|
|
|
15 |
Happy hackathon!
|
16 |
"""
|
17 |
)
|
18 |
+
st.header("About this app")
|
19 |
+
st.write("""
|
20 |
+
Some wording on the app and the tasks it can perform :)
|
21 |
+
""")
|
22 |
+
st.subheader(":point_left: Select a task from the left to get started!")
|
23 |
|
24 |
+
with st.sidebar:
|
25 |
+
st.write("Welcome! :wave:")
|
26 |
+
st.write("Select a task to supercharge your productivity from the ones below :point_down:")
|
27 |
|
28 |
+
OPTION1="Chat with a file 💬📖 - *Upload a file and ask questions about it*"
|
29 |
+
OPTION2="Text summarization 🔎 - *Upload a file and get it summarized*"
|
30 |
+
OPTION_N="Make a suggestion 🤔 - *Let the team know what task would you like to have at disposal*"
|
31 |
|
|
|
|
|
32 |
option = st.radio(
|
33 |
"Please select a task 🤖",
|
34 |
options=[OPTION1, OPTION2, OPTION_N],
|
35 |
key="task_selection"
|
36 |
)
|
37 |
|
38 |
+
confirm = st.button("Confirm", key="task_selection_confirm")
|
39 |
+
if confirm:
|
|
|
40 |
st.session_state["task_confirmed"] = True
|
41 |
|
42 |
if st.session_state.get("task_confirmed"):
|