tao-shen Claude Opus 4.6 commited on
Commit
d111a78
·
1 Parent(s): ca96613

feat: upload huggingrun.log to dataset for debugging

Browse files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. entrypoint.py +2 -2
entrypoint.py CHANGED
@@ -263,8 +263,8 @@ def save_and_upload():
263
  ok = 0
264
  fail = 0
265
 
266
- # Upload package list files
267
- for pf, name in [(PKG_FILE, "user-packages.list"), (PIP_FILE, "pip-packages.txt")]:
268
  if os.path.exists(pf):
269
  try:
270
  api.upload_file(
 
263
  ok = 0
264
  fail = 0
265
 
266
+ # Upload package list files + log
267
+ for pf, name in [(PKG_FILE, "user-packages.list"), (PIP_FILE, "pip-packages.txt"), (LOGFILE, "huggingrun.log")]:
268
  if os.path.exists(pf):
269
  try:
270
  api.upload_file(