Farid Karimli commited on
Commit
8402fe0
·
1 Parent(s): 9d89b34

Removing print statements

Browse files
Files changed (1) hide show
  1. code/main.py +0 -2
code/main.py CHANGED
@@ -269,7 +269,6 @@ class Chatbot:
269
  llm_settings = cl.user_session.get("llm_settings", {})
270
  view_sources = llm_settings.get("view_sources", False)
271
  stream = (llm_settings.get("stream_response", True)) or (not self.config["llm_params"]["stream"])
272
- print("Streaming", stream)
273
 
274
  processor = cl.user_session.get("chat_processor")
275
  res = await processor.rag(message.content, chain, stream)
@@ -277,7 +276,6 @@ class Chatbot:
277
  if stream:
278
  res = await self.stream_response(res)
279
 
280
- print(res)
281
  answer = res.get("answer", res.get("result"))
282
 
283
  answer_with_sources, source_elements, sources_dict = get_sources(
 
269
  llm_settings = cl.user_session.get("llm_settings", {})
270
  view_sources = llm_settings.get("view_sources", False)
271
  stream = (llm_settings.get("stream_response", True)) or (not self.config["llm_params"]["stream"])
 
272
 
273
  processor = cl.user_session.get("chat_processor")
274
  res = await processor.rag(message.content, chain, stream)
 
276
  if stream:
277
  res = await self.stream_response(res)
278
 
 
279
  answer = res.get("answer", res.get("result"))
280
 
281
  answer_with_sources, source_elements, sources_dict = get_sources(