Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -18,7 +18,7 @@ def parse_response(response):
|
|
18 |
result += '\n\nSources: \n'
|
19 |
for source_name in response["source_documents"]:
|
20 |
result += ''.join((source_name.metadata['source'],
|
21 |
-
"page #:", str(source_name.metadata['page']), ' \n'))
|
22 |
return result
|
23 |
|
24 |
app = FastAPI()
|
|
|
18 |
result += '\n\nSources: \n'
|
19 |
for source_name in response["source_documents"]:
|
20 |
result += ''.join((source_name.metadata['source'],
|
21 |
+
" page #:", str(source_name.metadata['page']), ' \n'))
|
22 |
return result
|
23 |
|
24 |
app = FastAPI()
|