Seth0330 commited on
Commit
8fa2c42
·
verified ·
1 Parent(s): 0cca271

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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!")