Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,9 +14,9 @@ import gradio as gr
|
|
14 |
|
15 |
def process_results(results):
|
16 |
answer = ""
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
|
21 |
k = 3 # How many documents you want to retrieve
|
22 |
|
|
|
14 |
|
15 |
def process_results(results):
|
16 |
answer = ""
|
17 |
+
for r in results:
|
18 |
+
answer += f"Sura: {r['document_id']} ({r['document_metadata']}) \n Text:{r['content']}\n\n"
|
19 |
+
return answer
|
20 |
|
21 |
k = 3 # How many documents you want to retrieve
|
22 |
|