Andre commited on
Commit
472af83
·
1 Parent(s): ba55349

“Update”

Browse files
Files changed (1) hide show
  1. src/img_gen.py +9 -0
src/img_gen.py CHANGED
@@ -1,4 +1,13 @@
1
  # img_gen.py
 
 
 
 
 
 
 
 
 
2
  import random
3
  from huggingface_hub import InferenceClient
4
  from datetime import datetime
 
1
  # img_gen.py
2
+ import sys
3
+ import os
4
+
5
+ # Add the src folder to the Python path
6
+ # Solves all problems w subfolders - option2
7
+ src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "src"))
8
+ if src_path not in sys.path:
9
+ sys.path.append(src_path)
10
+
11
  import random
12
  from huggingface_hub import InferenceClient
13
  from datetime import datetime