Anne31415 commited on
Commit
ef9208a
1 Parent(s): fb1db41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -2
app.py CHANGED
@@ -569,7 +569,34 @@ def page3():
569
  st.error(f"Upsi, an unexpected error occurred: {e}")
570
  # Optionally log the exception details to a file or error tracking service
571
 
572
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
573
 
574
  def main():
575
  # Sidebar content
@@ -577,7 +604,7 @@ def main():
577
  st.title('BinDoc GmbH')
578
  st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
579
  add_vertical_space(1)
580
- page = st.sidebar.selectbox("Choose a page", ["KH_Reform", "Kennzahlenbuch 100 Kennzahlen", "Kosten- und Strukturdaten der Krankenhäuser"])
581
  add_vertical_space(1)
582
  st.write('Made with ❤️ by BinDoc GmbH')
583
 
@@ -588,6 +615,8 @@ def main():
588
  page2()
589
  elif page == "Kosten- und Strukturdaten der Krankenhäuser":
590
  page3()
 
 
591
 
592
 
593
  if __name__ == "__main__":
 
569
  st.error(f"Upsi, an unexpected error occurred: {e}")
570
  # Optionally log the exception details to a file or error tracking service
571
 
572
+ def page4:
573
+ try:
574
+ st.header(":mailbox: Get In Touch With Me!")
575
+
576
+
577
+ contact_form = """
578
+ <form action="https://formsubmit.co/anne.demond@bindoc.de" method="POST">
579
+ <input type="hidden" name="_captcha" value="false">
580
+ <input type="text" name="name" placeholder="Your name" required>
581
+ <input type="email" name="email" placeholder="Your email" required>
582
+ <textarea name="message" placeholder="Your message here"></textarea>
583
+ <button type="submit">Send</button>
584
+ </form>
585
+ """
586
+
587
+ st.markdown(contact_form, unsafe_allow_html=True)
588
+
589
+ # Use Local CSS File
590
+ def local_css(file_name):
591
+ with open(file_name) as f:
592
+ st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
593
+
594
+
595
+ local_css("style/style.css")
596
+
597
+ except Exception as e:
598
+ st.error(f"Upsi, an unexpected error occurred: {e}")
599
+ # Optionally log the exception details to a file or error tracking service
600
 
601
  def main():
602
  # Sidebar content
 
604
  st.title('BinDoc GmbH')
605
  st.markdown("Experience revolutionary interaction with BinDocs Chat App, leveraging state-of-the-art AI technology.")
606
  add_vertical_space(1)
607
+ page = st.sidebar.selectbox("Choose a page", ["KH_Reform", "Kennzahlenbuch 100 Kennzahlen", "Kosten- und Strukturdaten der Krankenhäuser", "Form"])
608
  add_vertical_space(1)
609
  st.write('Made with ❤️ by BinDoc GmbH')
610
 
 
615
  page2()
616
  elif page == "Kosten- und Strukturdaten der Krankenhäuser":
617
  page3()
618
+ elif page == "Form":
619
+ page4()
620
 
621
 
622
  if __name__ == "__main__":