Spaces:
Running
Running
Setup loggging for question and answer
Browse files
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 |
-
|
|
|
|
|
|
|
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"):
|