cmpatino commited on
Commit
950ed53
·
1 Parent(s): a834a31

Setup loggging for question and answer

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
 
3
  import gradio as gr
4
  import pkg_resources
@@ -17,7 +18,10 @@ def package_installed(package_name):
17
 
18
 
19
  def answer(query):
20
- return agent.answer(query=query)
 
 
 
21
 
22
 
23
  if not package_installed("cv_assistant"):
 
1
  import os
2
+ import logging
3
 
4
  import gradio as gr
5
  import pkg_resources
 
18
 
19
 
20
  def answer(query):
21
+ logging.info(f"Query: {query}")
22
+ answer = agent.answer(query=query)
23
+ logging.info(f"Answer: {answer}")
24
+ return answer
25
 
26
 
27
  if not package_installed("cv_assistant"):