Spaces:
Running
Running
Bastien Dechamps
commited on
Commit
·
d9b35be
1
Parent(s):
73ff8b6
fix path
Browse files
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=
|
|
|
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 |
}
|