Spaces:
Runtime error
Runtime error
updated ui
Browse files- __pycache__/utils.cpython-310.pyc +0 -0
- app.py +13 -12
__pycache__/utils.cpython-310.pyc
CHANGED
Binary files a/__pycache__/utils.cpython-310.pyc and b/__pycache__/utils.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -23,18 +23,19 @@ with st.sidebar:
|
|
23 |
st.session_state.messages = []
|
24 |
clear_uploader()
|
25 |
|
26 |
-
st.
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
38 |
|
39 |
|
40 |
for message in st.session_state.messages:
|
|
|
23 |
st.session_state.messages = []
|
24 |
clear_uploader()
|
25 |
|
26 |
+
with st.expander("Advanced Configuration"):
|
27 |
+
st.subheader("Temperature")
|
28 |
+
temperature = st.slider(label="x", min_value=0.1, max_value=1.0, value=0.5, step=0.1, label_visibility='hidden')
|
29 |
+
st.subheader("Max Tokens")
|
30 |
+
max_tokens = st.slider(label="x", min_value=32, max_value=1024, value=256, step=32, label_visibility='hidden')
|
31 |
+
|
32 |
+
with st.expander("Image Input", expanded=True):
|
33 |
+
images = st.file_uploader(
|
34 |
+
"",
|
35 |
+
accept_multiple_files=True,
|
36 |
+
type=["png", "jpg", "jpeg"],
|
37 |
+
key=st.session_state["uploader_key"],
|
38 |
+
)
|
39 |
|
40 |
|
41 |
for message in st.session_state.messages:
|