LohithGummi commited on
Commit
07dbed9
·
verified ·
1 Parent(s): 09fb9c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -417,7 +417,7 @@ def build_prompt(df):
417
 
418
  def fetch_details(email):
419
  try:
420
- st.write(email)
421
  # Connect to the SQLite database
422
  connection = sqlite3.connect("2911.db") # Replace with your .db file path
423
  cursor = connection.cursor()
@@ -457,7 +457,7 @@ def fetch_details(email):
457
  cursor.execute(query, (email,))
458
  columns = [description[0] for description in cursor.description] # Extract column names
459
  results = cursor.fetchall() # Fetch all rows
460
-
461
  # Convert results into a list of dictionaries
462
  details = [dict(zip(columns, row)) for row in results]
463
  st.write(details)
 
417
 
418
  def fetch_details(email):
419
  try:
420
+ #st.write(email)
421
  # Connect to the SQLite database
422
  connection = sqlite3.connect("2911.db") # Replace with your .db file path
423
  cursor = connection.cursor()
 
457
  cursor.execute(query, (email,))
458
  columns = [description[0] for description in cursor.description] # Extract column names
459
  results = cursor.fetchall() # Fetch all rows
460
+ st.write(results)
461
  # Convert results into a list of dictionaries
462
  details = [dict(zip(columns, row)) for row in results]
463
  st.write(details)