Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -52,16 +52,21 @@ def send_verification_sms():
|
|
52 |
#tf.sendSMS("+19522583980", "Test 2")
|
53 |
|
54 |
base_url = "https://huggingface.co/spaces/awacke1/RT-SMS-Phone-Verify"
|
|
|
|
|
55 |
# Correct the sendSMS function call
|
56 |
#phone=st.session_state['phone_number']
|
57 |
phone=user_phone_input
|
58 |
st.write('Sending SMS to phone number ' + phone)
|
59 |
|
60 |
hashmessage=f"Verify here: {base_url}?hash={st.session_state['password']}"
|
|
|
|
|
61 |
st.write('Hash message: ' + hashmessage)
|
62 |
|
63 |
#result = tf.sendSMS(phone, hashmessage)
|
64 |
-
result = tf.sendSMS(phone, "Test 3")
|
|
|
65 |
|
66 |
if(result.ok):
|
67 |
st.write('Success with result data:')
|
|
|
52 |
#tf.sendSMS("+19522583980", "Test 2")
|
53 |
|
54 |
base_url = "https://huggingface.co/spaces/awacke1/RT-SMS-Phone-Verify"
|
55 |
+
base_url2 = "huggingface.co/spaces/awacke1/RT-SMS-Phone-Verify" # SMS - remove the https:// since SMS only likes plain text links without protocol
|
56 |
+
|
57 |
# Correct the sendSMS function call
|
58 |
#phone=st.session_state['phone_number']
|
59 |
phone=user_phone_input
|
60 |
st.write('Sending SMS to phone number ' + phone)
|
61 |
|
62 |
hashmessage=f"Verify here: {base_url}?hash={st.session_state['password']}"
|
63 |
+
hashmessage2=f"Verify here {base_url}?hash={st.session_state['password']}"
|
64 |
+
|
65 |
st.write('Hash message: ' + hashmessage)
|
66 |
|
67 |
#result = tf.sendSMS(phone, hashmessage)
|
68 |
+
#result = tf.sendSMS(phone, "Test 3") #works
|
69 |
+
result = tf.sendSMS(phone, hashmessage2)
|
70 |
|
71 |
if(result.ok):
|
72 |
st.write('Success with result data:')
|