multimodalart HF staff commited on
Commit
0464fd2
·
verified ·
1 Parent(s): 55896e3

Update wrapper.py

Browse files
Files changed (1) hide show
  1. wrapper.py +11 -1
wrapper.py CHANGED
@@ -27,8 +27,18 @@ def main():
27
  output_dir = '/home/user/app/output'
28
 
29
  try:
30
- # Get the directory where wrapper.py is located
31
  current_dir = os.path.dirname(os.path.abspath(__file__))
 
 
 
 
 
 
 
 
 
 
32
 
33
  # Run the inference script
34
  subprocess.run([
 
27
  output_dir = '/home/user/app/output'
28
 
29
  try:
30
+ # Add debugging before running inference
31
  current_dir = os.path.dirname(os.path.abspath(__file__))
32
+ print("\nDebugging information:")
33
+ print(f"Current directory: {current_dir}")
34
+ print("\nContents of current directory:")
35
+ print(os.listdir(current_dir))
36
+
37
+ if os.path.exists("./mm_tokenizer_v0.2_hf"):
38
+ print("\nContents of mm_tokenizer_v0.2_hf:")
39
+ print(os.listdir("./mm_tokenizer_v0.2_hf"))
40
+ else:
41
+ print("\nmm_tokenizer_v0.2_hf directory not found!")
42
 
43
  # Run the inference script
44
  subprocess.run([