Spaces:
Sleeping
Sleeping
Update contact.py
Browse files- contact.py +7 -1
contact.py
CHANGED
@@ -4,7 +4,7 @@ import streamlit.components.v1 as components
|
|
4 |
def show():
|
5 |
st.title("📬 Contact Us")
|
6 |
st.write("Feel free to reach out to us by filling the form below.")
|
7 |
-
|
8 |
public_key = st.secrets["emailjs"]["public_key"]
|
9 |
service_id = st.secrets["emailjs"]["service_id"]
|
10 |
template_id = st.secrets["emailjs"]["template_id"]
|
@@ -49,5 +49,11 @@ def show():
|
|
49 |
<body></body>
|
50 |
</html>
|
51 |
""", height=0)
|
|
|
|
|
|
|
52 |
else:
|
53 |
st.error("Please fill out all the fields.")
|
|
|
|
|
|
|
|
4 |
def show():
|
5 |
st.title("📬 Contact Us")
|
6 |
st.write("Feel free to reach out to us by filling the form below.")
|
7 |
+
|
8 |
public_key = st.secrets["emailjs"]["public_key"]
|
9 |
service_id = st.secrets["emailjs"]["service_id"]
|
10 |
template_id = st.secrets["emailjs"]["template_id"]
|
|
|
49 |
<body></body>
|
50 |
</html>
|
51 |
""", height=0)
|
52 |
+
|
53 |
+
# Optionally add a message to the user on success or failure
|
54 |
+
st.info("Please check your inbox (or spam) for the response.")
|
55 |
else:
|
56 |
st.error("Please fill out all the fields.")
|
57 |
+
|
58 |
+
# Call the function to display the contact form
|
59 |
+
show()
|