Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,11 +76,11 @@ def send_sms(accident_type):
|
|
76 |
# print(my_twilio_number)
|
77 |
# print(receiver_number)
|
78 |
|
79 |
-
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
print(accident_type)
|
85 |
|
86 |
|
|
|
76 |
# print(my_twilio_number)
|
77 |
# print(receiver_number)
|
78 |
|
79 |
+
client = Client(account_sid, auth_token)
|
80 |
|
81 |
+
message = client.messages.create(body=accident_type,
|
82 |
+
from_=my_twilio_number,
|
83 |
+
to=receiver_number)
|
84 |
print(accident_type)
|
85 |
|
86 |
|