update hf hub to get the real bdds
Browse files
app.py
CHANGED
@@ -34,9 +34,8 @@ print("Loading Databases")
|
|
34 |
qdrants = {
|
35 |
tab: pickle_to_document_store(
|
36 |
hf_hub_download(
|
37 |
-
repo_id="
|
38 |
filename=f"database_{tab}.pickle",
|
39 |
-
token=True,
|
40 |
repo_type="dataset",
|
41 |
)
|
42 |
)
|
@@ -426,11 +425,22 @@ def empty_none():
|
|
426 |
return None
|
427 |
|
428 |
|
429 |
-
theme = gr.themes.
|
430 |
-
primary_hue="
|
|
|
431 |
font=[gr.themes.GoogleFont("Poppins"), "ui-sans-serif", "system-ui", "sans-serif"],
|
432 |
)
|
433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
logo_rsf = config["logo_rsf"]
|
435 |
logo_ap = config["logo_ap"]
|
436 |
|
|
|
34 |
qdrants = {
|
35 |
tab: pickle_to_document_store(
|
36 |
hf_hub_download(
|
37 |
+
repo_id="SpinozaProject/spinoza-database",
|
38 |
filename=f"database_{tab}.pickle",
|
|
|
39 |
repo_type="dataset",
|
40 |
)
|
41 |
)
|
|
|
425 |
return None
|
426 |
|
427 |
|
428 |
+
theme = gr.themes.Base(
|
429 |
+
primary_hue="blue",
|
430 |
+
secondary_hue="red",
|
431 |
font=[gr.themes.GoogleFont("Poppins"), "ui-sans-serif", "system-ui", "sans-serif"],
|
432 |
)
|
433 |
|
434 |
+
|
435 |
+
init_prompt = """
|
436 |
+
Hello, I am Spinoza Q&A, a conversational assistant designed to help journalists by providing secialized answers from technical sources. I will answer your questions based **on the official definition of each ESRS as well as guidelines**.
|
437 |
+
|
438 |
+
⚠️ Limitations
|
439 |
+
*Please note that this chatbot is in an early stage phase, it is not perfect and may sometimes give irrelevant answers. If you are not satisfied with the answer, please ask a more specific question or report your feedback to help us improve the system.*
|
440 |
+
|
441 |
+
What do you want to learn ?
|
442 |
+
"""
|
443 |
+
|
444 |
logo_rsf = config["logo_rsf"]
|
445 |
logo_ap = config["logo_ap"]
|
446 |
|