We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6393dc5 commit ebb6001Copy full SHA for ebb6001
web/index.py
@@ -12,11 +12,15 @@
12
from numpy import iinfo
13
import numpy as np
14
15
+
16
def resource_path(relative_path):
- """ Get absolute path to resource, works for dev and for PyInstaller """
17
- base_path = getattr(sys, '_MEIPASS', os.path.dirname(os.path.abspath(__file__)))
+ """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
+ )
21
return os.path.join(base_path, relative_path)
22
23
24
prompt_examples = []
25
prompt_loc = resource_path("prompts.json")
26
if os.path.exists(prompt_loc):
0 commit comments