Spaces:
Sleeping
Sleeping
logging edit
#20
by
hw01558 - opened
app.py
CHANGED
|
@@ -106,7 +106,7 @@ import logging
|
|
| 106 |
|
| 107 |
#)
|
| 108 |
|
| 109 |
-
LOG_FILE = "usage_log.jsonl" # Use temporary file path for Hugging Face Spaces
|
| 110 |
|
| 111 |
def log_interaction(user_input, model_name, predictions):
|
| 112 |
# https://betterstack.com/community/guides/logging/how-to-start-logging-with-python/
|
|
|
|
| 106 |
|
| 107 |
#)
|
| 108 |
|
| 109 |
+
LOG_FILE = "./usage_log.jsonl" # Use temporary file path for Hugging Face Spaces
|
| 110 |
|
| 111 |
def log_interaction(user_input, model_name, predictions):
|
| 112 |
# https://betterstack.com/community/guides/logging/how-to-start-logging-with-python/
|