Spaces:
Running
on
Zero
Running
on
Zero
add log
Browse files
loader.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
import sys
|
3 |
from huggingface_hub import hf_hub_download
|
|
|
4 |
|
5 |
def load_script(file_str: str):
|
6 |
"""
|
@@ -142,6 +143,7 @@ def load_scripts():
|
|
142 |
print(f"Successfully executed '{last_file_path}'")
|
143 |
except Exception as e:
|
144 |
print(f"Error executing the last downloaded script '{last_file_path}': {e}")
|
|
|
145 |
else:
|
146 |
print("No files were downloaded to execute.")
|
147 |
|
|
|
1 |
import os
|
2 |
import sys
|
3 |
from huggingface_hub import hf_hub_download
|
4 |
+
import traceback
|
5 |
|
6 |
def load_script(file_str: str):
|
7 |
"""
|
|
|
143 |
print(f"Successfully executed '{last_file_path}'")
|
144 |
except Exception as e:
|
145 |
print(f"Error executing the last downloaded script '{last_file_path}': {e}")
|
146 |
+
print(traceback.format_exc())
|
147 |
else:
|
148 |
print("No files were downloaded to execute.")
|
149 |
|