Bastien Dechamps commited on
Commit
d9b35be
1 Parent(s): 73ff8b6
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import numpy as np
2
  import gradio as gr
3
  import plotly.graph_objects as go
@@ -18,7 +20,8 @@ ALL_GUESSR_ARGS = {
18
  device="cpu"
19
  ),
20
  "retriever": Retriever(
21
- embeddings_path="/home/bastiendechamps/geoguessr-bot/data/samples_embedded.npy"
 
22
  )
23
  }
24
  }
 
1
+ import os.path
2
+
3
  import numpy as np
4
  import gradio as gr
5
  import plotly.graph_objects as go
 
20
  device="cpu"
21
  ),
22
  "retriever": Retriever(
23
+ embeddings_path=os.path.join(os.path.dirname(os.path.abspath(__file__)),
24
+ "resources/samples_embedded.npy")
25
  )
26
  }
27
  }