Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from custom_agent import CustomHfAgent
|
|
15 |
from tool_loader import ToolLoader
|
16 |
from tool_config import tool_names
|
17 |
from app_description import show_app_description
|
18 |
-
|
19 |
|
20 |
# For Altair charts
|
21 |
import altair as alt
|
@@ -67,11 +67,7 @@ def handle_submission(user_message, selected_tools, url_endpoint):
|
|
67 |
global log_enabled
|
68 |
log_enabled = False
|
69 |
|
70 |
-
|
71 |
-
if log_enabled:
|
72 |
-
with st.chat_message("ai"):
|
73 |
-
st.markdown("Agent Response\n {}".format(response))
|
74 |
-
print(response)
|
75 |
|
76 |
|
77 |
|
|
|
15 |
from tool_loader import ToolLoader
|
16 |
from tool_config import tool_names
|
17 |
from app_description import show_app_description
|
18 |
+
from logger import log_response
|
19 |
|
20 |
# For Altair charts
|
21 |
import altair as alt
|
|
|
67 |
global log_enabled
|
68 |
log_enabled = False
|
69 |
|
70 |
+
|
|
|
|
|
|
|
|
|
71 |
|
72 |
|
73 |
|