Skip to content

Commit a8d7cbc

Browse files
fix: could not find style.css on huggingface deploy
1 parent a271076 commit a8d7cbc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wanderlust.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
from pathlib import Path
34

45
import ipyleaflet
56
from openai import OpenAI, NotFoundError
@@ -9,6 +10,8 @@
910

1011
import solara
1112

13+
HERE = Path(__file__)
14+
1215
center_default = (0, 0)
1316
zoom_default = 2
1417

@@ -20,7 +23,7 @@
2023
url = ipyleaflet.basemaps.OpenStreetMap.Mapnik.build_url()
2124
openai = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
2225
model = "gpt-4-1106-preview"
23-
app_style = open("style.css", "r").read()
26+
app_style = (HERE / "style.css").read_text()
2427

2528

2629
# Declare tools for openai assistant to use

0 commit comments

Comments
 (0)