diff --git a/api/chat.py b/api/chat.py index a3b0e8a..d08d2a8 100644 --- a/api/chat.py +++ b/api/chat.py @@ -153,23 +153,26 @@ def talk_to_robot(index, query: str, history: List[Dict[str, str]], k: int = STA t2 = time.time() - log("Time to get response: ", t2 - t1, " s") + print("Time to get response: ", t2 - t1, " s") if DEBUG_PRINT: - log('\n' * 10) - log(" ------------------------------ prompt: -----------------------------") + print('\n' * 10) + print(" ------------------------------ prompt: -----------------------------") for message in prompt: - log(f"----------- {message['role']}: ------------------") - log(message['content']) + print(f"----------- {message['role']}: ------------------") + print(message['content']) - log('\n' * 10) + print('\n' * 10) - log(" ------------------------------ response: -----------------------------") - log(response) + print(" ------------------------------ response: -----------------------------") + print(response) + + log(query) + log(response) yield json.dumps({"state": "done"}) except Exception as e: - log(e) + print(e) yield json.dumps({"state": "error", "error": str(e)}) diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 0d36038..1ea57c0 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -385,6 +385,12 @@ const Home: NextPage = () => {
+ +

+ Since this is still an early test, all questions and answers are stored.
+ Zero other information is collected. +

+