Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ rag = RAG(embeddings_model=os.getenv("EMBEDDINGS"))
|
|
19 |
def eadop_rag(prompt, num_chunks):
|
20 |
model_parameters = {"NUM_CHUNKS": num_chunks}
|
21 |
try:
|
22 |
-
|
23 |
except HTTPError as err:
|
24 |
if err.code == 400:
|
25 |
gr.Warning(
|
|
|
19 |
def eadop_rag(prompt, num_chunks):
|
20 |
model_parameters = {"NUM_CHUNKS": num_chunks}
|
21 |
try:
|
22 |
+
return rag.get_context(prompt, model_parameters)
|
23 |
except HTTPError as err:
|
24 |
if err.code == 400:
|
25 |
gr.Warning(
|