malte commited on
Commit
f68050e
1 Parent(s): 3805136

remove debug logs

Browse files
Files changed (2) hide show
  1. app.py +0 -1
  2. utils/backend.py +1 -1
app.py CHANGED
@@ -47,7 +47,6 @@ if st.session_state.get('query') and run_pressed:
47
  '\n This may take a few mins and might also fail if OpenAI API server is down.'):
48
  answers_2 = p3.run(ip)
49
  placeholder_retrieval_augmented.markdown(answers_2['results'][0])
50
- print(answers_2)
51
  with st.expander("See source:"):
52
  src = answers_2['invocation_context']['documents'][0].content.replace("$", "\$")
53
  split_marker = "\n\n" if "\n\n" in src else "\n"
 
47
  '\n This may take a few mins and might also fail if OpenAI API server is down.'):
48
  answers_2 = p3.run(ip)
49
  placeholder_retrieval_augmented.markdown(answers_2['results'][0])
 
50
  with st.expander("See source:"):
51
  src = answers_2['invocation_context']['documents'][0].content.replace("$", "\$")
52
  split_marker = "\n\n" if "\n\n" in src else "\n"
utils/backend.py CHANGED
@@ -33,7 +33,7 @@ def get_retrieval_augmented_pipeline():
33
  prompt_text="Given the context please answer the question. Context: {join(documents)}; Question: "
34
  "{query}; Answer:",
35
  )
36
- print(default_template.prompt_text)
37
  # Let's initiate the PromptNode
38
  node = PromptNode("text-davinci-003", default_prompt_template=default_template,
39
  api_key=st.secrets["OPENAI_API_KEY"], max_length=500)
 
33
  prompt_text="Given the context please answer the question. Context: {join(documents)}; Question: "
34
  "{query}; Answer:",
35
  )
36
+
37
  # Let's initiate the PromptNode
38
  node = PromptNode("text-davinci-003", default_prompt_template=default_template,
39
  api_key=st.secrets["OPENAI_API_KEY"], max_length=500)