Spaces:
Runtime error
Runtime error
added list of injected documents to sidebar
Browse files
app.py
CHANGED
@@ -26,9 +26,10 @@ for file in files:
|
|
26 |
|
27 |
# Config
|
28 |
with st.sidebar:
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
32 |
model = st.selectbox("Model name", ["gpt-3.5-turbo"])
|
33 |
|
34 |
|
|
|
26 |
|
27 |
# Config
|
28 |
with st.sidebar:
|
29 |
+
st.write(f"Injected documents: \n\n {"\n".join("\n"+file for file in files)}")
|
30 |
+
chunk_size = st.number_input("Chunk size", value=500, step=100, placeholder=500) # Defines the chunks in amount of tokens in which the files are split. Also defines the amount of tokens that are feeded into the context.
|
31 |
+
chunk_overlap = st.number_input("Chunk overlap", value=100, step=10, placeholder=100)
|
32 |
+
temperature = st.number_input("Temperature", value=0.0, min_value=0.0, step=0.2, max_value=1.0, placeholder=0.0)
|
33 |
model = st.selectbox("Model name", ["gpt-3.5-turbo"])
|
34 |
|
35 |
|