Nick Canu commited on
Commit
bee86f1
·
1 Parent(s): f961148

feedback test

Browse files
Files changed (1) hide show
  1. Home.py +24 -2
Home.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
 
3
  st.set_page_config(page_title='Auto-BG: The Game Concept Generator', layout='wide')
4
 
5
- tab1, tab2, tab3 = st.tabs(['App', 'Blog', 'About Us'])
6
 
7
  def application():
8
  ###Imports
@@ -404,6 +404,25 @@ def about_us():
404
  *MADS (Master of Applied Data Science)*\n
405
  """)
406
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
407
  with tab1:
408
  application()
409
 
@@ -411,4 +430,7 @@ with tab2:
411
  blog()
412
 
413
  with tab3:
414
- about_us()
 
 
 
 
2
 
3
  st.set_page_config(page_title='Auto-BG: The Game Concept Generator', layout='wide')
4
 
5
+ tab1, tab2, tab3, tab4 = st.tabs(['App', 'Blog', 'Feedback', 'About Us'])
6
 
7
  def application():
8
  ###Imports
 
404
  *MADS (Master of Applied Data Science)*\n
405
  """)
406
 
407
+ def feedback():
408
+ import pandas as pd
409
+ from pathlib import Path
410
+
411
+ st.subheader('Leave comments below')
412
+
413
+ with st.form('feed',clear_on_submit=True):
414
+ f = st.text_area('Feedback')
415
+ sub = st.form_submit_button('Submit')
416
+
417
+ if sub:
418
+ feed_ser = pd.read_csv(Path(__file__).parent / "Persistent_Data/Feedback.csv")
419
+ f_s = pd.Series(f)
420
+ feed_ser = feed_ser.append(f_s)
421
+ feed_ser.to_csv(Path(__file__).parent / "Persistent_Data/Feedback.csv")
422
+
423
+
424
+
425
+
426
  with tab1:
427
  application()
428
 
 
430
  blog()
431
 
432
  with tab3:
433
+ feedback()
434
+
435
+ with tab4:
436
+ about_us()