Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def store_embedding(file_id, chunk_index, embedding, chunk_text):
|
|
65 |
|
66 |
def get_embeddings(file_id):
|
67 |
"""Retrieve embeddings and their corresponding chunk texts from the database."""
|
68 |
-
cursor.execute("SELECT chunk_index, embedding, chunk_text FROM embeddings)
|
69 |
return cursor.fetchall()
|
70 |
|
71 |
def generate_verification_code(length=6):
|
|
|
65 |
|
66 |
def get_embeddings(file_id):
|
67 |
"""Retrieve embeddings and their corresponding chunk texts from the database."""
|
68 |
+
cursor.execute("SELECT chunk_index, embedding, chunk_text FROM embeddings")
|
69 |
return cursor.fetchall()
|
70 |
|
71 |
def generate_verification_code(length=6):
|