timfe commited on
Commit
9d9d914
·
1 Parent(s): 2097d78

added list of injected documents to sidebar

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -26,9 +26,10 @@ for file in files:
26
 
27
  # Config
28
  with st.sidebar:
29
- chunk_size = st.number_input("Insert 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.
30
- chunk_overlap = st.number_input("Insert chunk-overlap", value=100, step=10, placeholder=100)
31
- temperature = st.number_input("Insert temperature", value=0.0, min_value=0.0, step=0.2, max_value=1.0, placeholder=0.0)
 
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