tawfik.gh commited on
Commit
40ec6ce
1 Parent(s): 002d02c

update the sign in flow

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -53,11 +53,12 @@ def get_questions(message: str):
53
 
54
  @st.dialog("Sign Up")
55
  def email_form():
56
- name = st.text_input("Name")
57
  email = st.text_input("Email")
58
- print(name)
 
59
  print(email)
60
- if st.button('submit'):
 
61
  st.rerun()
62
 
63
  if "messages" not in st.session_state:
@@ -65,7 +66,7 @@ if "messages" not in st.session_state:
65
  ChatMessage(role="system", content="You are a real state assistant that helps users find best properties in Dubai that fit there requirement")
66
  ]
67
 
68
- if len(st.session_state.messages) >= 7:
69
  st.write("please sign in to fam property to complete conversation")
70
  st.button('Sign In',on_click=email_form)
71
 
 
53
 
54
  @st.dialog("Sign Up")
55
  def email_form():
 
56
  email = st.text_input("Email")
57
+ password = st.text_input("Password")
58
+ print(password)
59
  print(email)
60
+
61
+ if st.button('submit') and email == "admin" and password == "admin":
62
  st.rerun()
63
 
64
  if "messages" not in st.session_state:
 
66
  ChatMessage(role="system", content="You are a real state assistant that helps users find best properties in Dubai that fit there requirement")
67
  ]
68
 
69
+ if len(st.session_state.messages) == 7:
70
  st.write("please sign in to fam property to complete conversation")
71
  st.button('Sign In',on_click=email_form)
72