ironjr commited on
Commit
097b15f
·
verified ·
1 Parent(s): b98344a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -499,6 +499,9 @@ def draw(state, drawpad):
499
 
500
  ### Load examples
501
 
 
 
 
502
  with open(os.path.join(example_root, 'prompt_background.txt')) as f:
503
  prompts_background = [l.strip() for l in f.readlines() if l.strip() != '']
504
 
 
499
 
500
  ### Load examples
501
 
502
+ root = pathlib.Path(__file__).parent
503
+ example_root = os.path.join(root, 'examples')
504
+
505
  with open(os.path.join(example_root, 'prompt_background.txt')) as f:
506
  prompts_background = [l.strip() for l in f.readlines() if l.strip() != '']
507