Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ def ingest_json_files(files):
|
|
| 112 |
cursor.execute("""
|
| 113 |
INSERT INTO json_records (batch_time, source_file, raw_json, flat_text, embedding)
|
| 114 |
VALUES (?, ?, ?, ?, ?)
|
| 115 |
-
""", row.batch_time, row.source_file, row.raw_json, row.flat_text, emb_bytes)
|
| 116 |
conn.commit()
|
| 117 |
conn.close()
|
| 118 |
st.success(f"Ingested and indexed {len(df)} new records!")
|
|
|
|
| 112 |
cursor.execute("""
|
| 113 |
INSERT INTO json_records (batch_time, source_file, raw_json, flat_text, embedding)
|
| 114 |
VALUES (?, ?, ?, ?, ?)
|
| 115 |
+
""", (row.batch_time, row.source_file, row.raw_json, row.flat_text, emb_bytes))
|
| 116 |
conn.commit()
|
| 117 |
conn.close()
|
| 118 |
st.success(f"Ingested and indexed {len(df)} new records!")
|