ErikH commited on
Commit
3f743ae
1 Parent(s): a3e5f1b

Update pages/bot.py

Browse files
Files changed (1) hide show
  1. pages/bot.py +2 -2
pages/bot.py CHANGED
@@ -95,7 +95,7 @@ def main():
95
  question=user_question
96
  st.text(user_question)
97
  context=""+retrieved_docs[0].page_content+retrieved_docs[1].page_content+retrieved_docs[3].page_content
98
- context.replace("\n", "TEST")
99
  st.text("Das ist der Kontext:")
100
  st.text(context)
101
 
@@ -107,7 +107,7 @@ def main():
107
 
108
  # Gib die Antwort aus
109
  st.text("Basisantwort:")
110
- st.text(answer["answer"])
111
  st.text(answer)
112
 
113
 
 
95
  question=user_question
96
  st.text(user_question)
97
  context=""+retrieved_docs[0].page_content+retrieved_docs[1].page_content+retrieved_docs[3].page_content
98
+ context=context.replace("\n", " ") # WProbe: ird der Text wirklich angepasst?
99
  st.text("Das ist der Kontext:")
100
  st.text(context)
101
 
 
107
 
108
  # Gib die Antwort aus
109
  st.text("Basisantwort:")
110
+ #st.text(answer["answer"])
111
  st.text(answer)
112
 
113