Skip to content

Commit

Permalink
fix: could not find style.css on huggingface deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Nov 10, 2023
1 parent a271076 commit a8d7cbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wanderlust.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
from pathlib import Path

import ipyleaflet
from openai import OpenAI, NotFoundError
Expand All @@ -9,6 +10,8 @@

import solara

HERE = Path(__file__)

center_default = (0, 0)
zoom_default = 2

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


# Declare tools for openai assistant to use
Expand Down

0 comments on commit a8d7cbc

Please sign in to comment.