Spaces:
Sleeping
Sleeping
fix issue with groq
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import time
|
|
|
3 |
from spinoza_project.source.backend.llm_utils import (
|
4 |
get_llm_api,
|
5 |
get_vectorstore_api,
|
@@ -49,8 +50,10 @@ llm = get_llm_api()
|
|
49 |
|
50 |
## Loading BDDs
|
51 |
print("Loading Databases")
|
52 |
-
|
53 |
-
|
|
|
|
|
54 |
qdrants = get_qdrants(config)
|
55 |
|
56 |
## Loading Assets
|
|
|
1 |
import gradio as gr
|
2 |
import time
|
3 |
+
import os
|
4 |
from spinoza_project.source.backend.llm_utils import (
|
5 |
get_llm_api,
|
6 |
get_vectorstore_api,
|
|
|
50 |
|
51 |
## Loading BDDs
|
52 |
print("Loading Databases")
|
53 |
+
if os.getenv("EKI_OPENAI_EMB_DEPLOYMENT_NAME"):
|
54 |
+
bdd_presse = get_vectorstore_api("presse")
|
55 |
+
bdd_afp = get_vectorstore_api("afp")
|
56 |
+
|
57 |
qdrants = get_qdrants(config)
|
58 |
|
59 |
## Loading Assets
|