Skip to content

Commit ebb6001

Browse files
authored
Minor formatting fix. (huggingface#538)
1 parent 6393dc5 commit ebb6001

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web/index.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
from numpy import iinfo
1313
import numpy as np
1414

15+
1516
def resource_path(relative_path):
16-
""" Get absolute path to resource, works for dev and for PyInstaller """
17-
base_path = getattr(sys, '_MEIPASS', os.path.dirname(os.path.abspath(__file__)))
17+
"""Get absolute path to resource, works for dev and for PyInstaller"""
18+
base_path = getattr(
19+
sys, "_MEIPASS", os.path.dirname(os.path.abspath(__file__))
20+
)
1821
return os.path.join(base_path, relative_path)
1922

23+
2024
prompt_examples = []
2125
prompt_loc = resource_path("prompts.json")
2226
if os.path.exists(prompt_loc):

0 commit comments

Comments
 (0)