Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|