From 7e1537229c13f6073e71333ee93ab7ddfb665130 Mon Sep 17 00:00:00 2001 From: freedisch Date: Sat, 27 Jan 2024 00:05:30 +0200 Subject: [PATCH] replaced by env Signed-off-by: freedisch --- aimodel/templates/index.html | 2 +- aimodel/trainedmodel/call.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/aimodel/templates/index.html b/aimodel/templates/index.html index 84ff622..66bedc5 100644 --- a/aimodel/templates/index.html +++ b/aimodel/templates/index.html @@ -6,7 +6,7 @@

Live Streaming1

diff --git a/aimodel/trainedmodel/call.py b/aimodel/trainedmodel/call.py index d3e2080..06a9ee4 100644 --- a/aimodel/trainedmodel/call.py +++ b/aimodel/trainedmodel/call.py @@ -1,17 +1,17 @@ import os from twilio.rest import Client -account_sid = "SID" -auth_token = "Toekn" +account_sid = os.getenv("SID_NUMBER") +auth_token = os.getenv("TOKEN_NUMBER") client = Client(account_sid, auth_token) message = client.calls.create( - url='http://demo.twilio.com/docs/voice.xml', - to='+254708379775', - from_='+15108086846', - timeout=100 - #body='Tests' + url=os.getenv("URL_NUMBER"), + to="", + from_=os.getenv("CALLING_NUMBER"), + timeout=100 + #body='Tests' ) print(message) \ No newline at end of file