Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,11 @@ from share_btn import community_icon_html, loading_icon_html, share_js, share_bt
|
|
12 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
13 |
API_URL = os.environ.get("API_URL")
|
14 |
|
|
|
|
|
15 |
|
16 |
-
response = requests.get("https://huggingface.co/spaces/bigcode/bigcode-playground/resolve/main/HHH_prompt.txt")
|
17 |
-
HHH_PROMPT = response.text
|
18 |
|
19 |
FIM_PREFIX = "<fim_prefix>"
|
20 |
FIM_MIDDLE = "<fim_middle>"
|
|
|
12 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
13 |
API_URL = os.environ.get("API_URL")
|
14 |
|
15 |
+
with open("./HHH_prompt.txt", "r") as f:
|
16 |
+
HHH_PROMPT = f.read()
|
17 |
|
18 |
+
#response = requests.get("https://huggingface.co/spaces/bigcode/bigcode-playground/resolve/main/HHH_prompt.txt")
|
19 |
+
#HHH_PROMPT = response.text
|
20 |
|
21 |
FIM_PREFIX = "<fim_prefix>"
|
22 |
FIM_MIDDLE = "<fim_middle>"
|