Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def split_into_chunks(text, chunk_size=100):
|
|
47 |
|
48 |
def semantic_search(query, file):
|
49 |
if file is not None:
|
50 |
-
document = file.
|
51 |
chunks = split_into_chunks(document)
|
52 |
response = query_similarity(query, chunks)
|
53 |
return format_output(response)
|
|
|
47 |
|
48 |
def semantic_search(query, file):
|
49 |
if file is not None:
|
50 |
+
document = file.read()
|
51 |
chunks = split_into_chunks(document)
|
52 |
response = query_similarity(query, chunks)
|
53 |
return format_output(response)
|