Spaces:
Running
Running
Dan Flower
commited on
Commit
·
9fe03de
1
Parent(s):
ad8017c
troubleshooting model path issue
Browse files- utils/logger.py +4 -1
utils/logger.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import datetime
|
| 2 |
|
| 3 |
-
def log_interaction(user_input, model_output):
|
| 4 |
timestamp = datetime.datetime.now().isoformat()
|
|
|
|
| 5 |
print(f"[{timestamp}] USER: {user_input}")
|
| 6 |
print(f"[{timestamp}] MODEL: {model_output}")
|
|
|
|
|
|
|
|
|
| 1 |
import datetime
|
| 2 |
|
| 3 |
+
def log_interaction(lab_name: str, user_input: str, model_output: str, result: float):
|
| 4 |
timestamp = datetime.datetime.now().isoformat()
|
| 5 |
+
print(f"[{timestamp}] MODEL: {lab_name}")
|
| 6 |
print(f"[{timestamp}] USER: {user_input}")
|
| 7 |
print(f"[{timestamp}] MODEL: {model_output}")
|
| 8 |
+
print(f"[{timestamp}] MODEL: {result}")
|
| 9 |
+
|