Spaces:
Runtime error
Runtime error
Cédric KACZMAREK
commited on
Commit
·
94f13dc
1
Parent(s):
0a890f4
Correction chemin de l'image
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from llama_index.embeddings.mistralai import MistralAIEmbedding
|
|
15 |
from llama_index.vector_stores.chroma import ChromaVectorStore
|
16 |
from llama_index.core.indices.service_context import ServiceContext
|
17 |
|
18 |
-
from pathlib import
|
19 |
|
20 |
TITLE = "RIZOA-AUCHAN Chatbot Demo"
|
21 |
DESCRIPTION = "Example of an assistant with Gradio, coupling with function calling and Mistral AI via its API"
|
@@ -53,13 +53,13 @@ index = VectorStoreIndex(
|
|
53 |
query_engine = index.as_query_engine(similarity_top_k=5)
|
54 |
|
55 |
FILE = Path(__file__).resolve()
|
56 |
-
BASE_PATH = FILE.parents[
|
57 |
|
58 |
|
59 |
with gr.Blocks() as demo:
|
60 |
with gr.Row():
|
61 |
with gr.Column(scale=1):
|
62 |
-
gr.Image(value=os.path.join(BASE_PATH,"img
|
63 |
height=250,
|
64 |
width=250,
|
65 |
container=False,
|
|
|
15 |
from llama_index.vector_stores.chroma import ChromaVectorStore
|
16 |
from llama_index.core.indices.service_context import ServiceContext
|
17 |
|
18 |
+
from pathlib import Path
|
19 |
|
20 |
TITLE = "RIZOA-AUCHAN Chatbot Demo"
|
21 |
DESCRIPTION = "Example of an assistant with Gradio, coupling with function calling and Mistral AI via its API"
|
|
|
53 |
query_engine = index.as_query_engine(similarity_top_k=5)
|
54 |
|
55 |
FILE = Path(__file__).resolve()
|
56 |
+
BASE_PATH = FILE.parents[0]
|
57 |
|
58 |
|
59 |
with gr.Blocks() as demo:
|
60 |
with gr.Row():
|
61 |
with gr.Column(scale=1):
|
62 |
+
gr.Image(value=os.path.join(BASE_PATH,"img","logo_rizoa_auchan.jpg"),
|
63 |
height=250,
|
64 |
width=250,
|
65 |
container=False,
|