Mbonea commited on
Commit
f27f3d5
·
1 Parent(s): 53cc68a

added print statements

Browse files
Files changed (1) hide show
  1. App/Chat/utils/Summarize.py +2 -0
App/Chat/utils/Summarize.py CHANGED
@@ -98,6 +98,7 @@ async def PalmTextModel(text, candidates=1):
98
 
99
 
100
  async def Summarizer(essay):
 
101
  docs = text_splitter.create_documents([essay])
102
 
103
  # for 1 large document
@@ -114,5 +115,6 @@ async def Summarizer(essay):
114
  # Gather and execute the tasks concurrently
115
  responses = await asyncio.gather(*tasks)
116
  main = " ".join(responses)
 
117
  ans = await PalmTextModel(combine_prompt.format(text=main))
118
  return ans
 
98
 
99
 
100
  async def Summarizer(essay):
101
+ print(essay)
102
  docs = text_splitter.create_documents([essay])
103
 
104
  # for 1 large document
 
115
  # Gather and execute the tasks concurrently
116
  responses = await asyncio.gather(*tasks)
117
  main = " ".join(responses)
118
+ print(main)
119
  ans = await PalmTextModel(combine_prompt.format(text=main))
120
  return ans