rairo commited on
Commit
ef132d8
·
verified ·
1 Parent(s): 6bfcc92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -90,9 +90,15 @@ def main():
90
  # Then query to list all users
91
  complaints_ref = db.collection('complaints')
92
 
 
93
  for doc in complaints_ref.stream():
94
- st.write('{} => {}'.format(doc.id, doc.to_dict()))
 
95
 
 
 
 
 
96
 
97
 
98
  if st.button("Logout", key="logout_button"):
 
90
  # Then query to list all users
91
  complaints_ref = db.collection('complaints')
92
 
93
+ complaints_list = []
94
  for doc in complaints_ref.stream():
95
+ a = doc.to_dict()
96
+ complaints_list.append(a)
97
 
98
+ complaints_df = pd.DataFrame(complaints_list)
99
+
100
+ st.dataframe(complaints_df)
101
+
102
 
103
 
104
  if st.button("Logout", key="logout_button"):