Felguk commited on
Commit
7112e57
·
verified ·
1 Parent(s): 5aaeeb3

Rename page/mail.py to page/mail_page.py

Browse files
Files changed (1) hide show
  1. page/{mail.py → mail_page.py} +8 -11
page/{mail.py → mail_page.py} RENAMED
@@ -1,19 +1,16 @@
1
  import streamlit as st
2
 
3
- def main():
4
- st.title("Email Sent Successfully")
5
- st.write("Thank you for your tool request! Your email has been sent.")
6
  st.write("Here are the details of your request:")
7
 
8
- # Retrieve the tool and email from session state
 
9
  tool = st.session_state.get('tool')
10
- email = st.session_state.get('email')
11
 
12
- if tool and email:
 
13
  st.write(f"**Tool:** {tool}")
14
- st.write(f"**Email:** {email}")
15
  else:
16
- st.write("No request details found.")
17
-
18
- if __name__ == "__main__":
19
- main()
 
1
  import streamlit as st
2
 
3
+ def mail_page():
4
+ st.title("Request Sent Successfully")
5
+ st.write("Thank you for your tool request! Your request has been sent.")
6
  st.write("Here are the details of your request:")
7
 
8
+ # Retrieve the name and tool from session state
9
+ name = st.session_state.get('name')
10
  tool = st.session_state.get('tool')
 
11
 
12
+ if name and tool:
13
+ st.write(f"**Name:** {name}")
14
  st.write(f"**Tool:** {tool}")
 
15
  else:
16
+ st.write("No request details found.")