Spaces:
Running
Running
maartenbreddels
commited on
Commit
•
50e2fca
1
Parent(s):
a271076
fix: could not find style.css on huggingface deploy
Browse files- wanderlust.py +4 -1
wanderlust.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import json
|
2 |
import os
|
|
|
3 |
|
4 |
import ipyleaflet
|
5 |
from openai import OpenAI, NotFoundError
|
@@ -9,6 +10,8 @@ import time
|
|
9 |
|
10 |
import solara
|
11 |
|
|
|
|
|
12 |
center_default = (0, 0)
|
13 |
zoom_default = 2
|
14 |
|
@@ -20,7 +23,7 @@ markers = solara.reactive([])
|
|
20 |
url = ipyleaflet.basemaps.OpenStreetMap.Mapnik.build_url()
|
21 |
openai = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|
22 |
model = "gpt-4-1106-preview"
|
23 |
-
app_style =
|
24 |
|
25 |
|
26 |
# Declare tools for openai assistant to use
|
|
|
1 |
import json
|
2 |
import os
|
3 |
+
from pathlib import Path
|
4 |
|
5 |
import ipyleaflet
|
6 |
from openai import OpenAI, NotFoundError
|
|
|
10 |
|
11 |
import solara
|
12 |
|
13 |
+
HERE = Path(__file__).parent
|
14 |
+
|
15 |
center_default = (0, 0)
|
16 |
zoom_default = 2
|
17 |
|
|
|
23 |
url = ipyleaflet.basemaps.OpenStreetMap.Mapnik.build_url()
|
24 |
openai = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|
25 |
model = "gpt-4-1106-preview"
|
26 |
+
app_style = (HERE / "style.css").read_text()
|
27 |
|
28 |
|
29 |
# Declare tools for openai assistant to use
|