a python to take user query as input and summarize it