awacke1 commited on
Commit
cdf47fa
·
1 Parent(s): e03cf16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,8 +30,6 @@ elif choice == "md":
30
  elif choice == "py":
31
  st.sidebar.write(choicePrefix + "Python Code.")
32
 
33
- max_length = st.sidebar.slider("Max document length", min_value=1000, max_value=32000, value=2000, step=1000)
34
-
35
  def generate_filename(prompt, file_type):
36
  central = pytz.timezone('US/Central')
37
  safe_date_time = datetime.now(central).strftime("%m%d_%I%M")
@@ -113,7 +111,9 @@ def read_file_content(file,max_length):
113
  def main():
114
  user_prompt = st.text_area("Your question:", '', height=120)
115
  uploaded_file = st.file_uploader("Choose a file", type=["xml", "json", "html", "htm", "md", "txt"])
116
- max_length = 4000
 
 
117
 
118
  document_sections = deque()
119
  document_responses = {}
 
30
  elif choice == "py":
31
  st.sidebar.write(choicePrefix + "Python Code.")
32
 
 
 
33
  def generate_filename(prompt, file_type):
34
  central = pytz.timezone('US/Central')
35
  safe_date_time = datetime.now(central).strftime("%m%d_%I%M")
 
111
  def main():
112
  user_prompt = st.text_area("Your question:", '', height=120)
113
  uploaded_file = st.file_uploader("Choose a file", type=["xml", "json", "html", "htm", "md", "txt"])
114
+ #max_length = 4000
115
+
116
+ max_length = st.sidebar.slider("Max Context Section Length", min_value=1000, max_value=32000, value=4000, step=1000)
117
 
118
  document_sections = deque()
119
  document_responses = {}