Spaces:
Sleeping
Sleeping
changes
Browse files- .streamlit/config.toml +9 -0
- app.py +30 -0
- requirements.txt +1 -0
.streamlit/config.toml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[server]
|
2 |
+
port = 7000
|
3 |
+
headless = true
|
4 |
+
|
5 |
+
[browser]
|
6 |
+
gatherUsageStats = false
|
7 |
+
|
8 |
+
[theme]
|
9 |
+
base = "light"
|
app.py
CHANGED
@@ -1,4 +1,34 @@
|
|
1 |
import streamlit as st
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
x = st.slider('Select a value')
|
4 |
st.write(x, 'squared is', x * x)
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
# set page to wide
|
4 |
+
st.set_page_config(layout="wide")
|
5 |
+
|
6 |
+
st.header('ChatStudio')
|
7 |
+
|
8 |
+
# Create sidebar with dropdown menu with content about the app
|
9 |
+
with st.sidebar:
|
10 |
+
st.subheader('ChatStudio')
|
11 |
+
page = st.selectbox("Choose a context", [
|
12 |
+
'Wiki',
|
13 |
+
'Github',
|
14 |
+
'HuggingFace',
|
15 |
+
])
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
# Create st.tabs
|
20 |
+
tabs = st.tabs(
|
21 |
+
[
|
22 |
+
"Wiki",
|
23 |
+
"Github",
|
24 |
+
"HuggingFace",
|
25 |
+
]
|
26 |
+
)
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
x = st.slider('Select a value')
|
33 |
st.write(x, 'squared is', x * x)
|
34 |
+
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
streamlit
|