Skip to content

Commit

Permalink
replaced by env
Browse files Browse the repository at this point in the history
Signed-off-by: freedisch <[email protected]>
  • Loading branch information
Freedisch committed Jan 26, 2024
1 parent cc4c6fc commit 7e15372
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion aimodel/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="col-lg-8 offset-lg-2">
<h3 class="mt-5">Live Streaming1</h3>
<img
src="http://127.0.0.1:8000/video1"
src="http://127.0.0.1:8000/video2"
style="border-radius: 20px 20px 0 0"
/>
</div>
Expand Down
14 changes: 7 additions & 7 deletions aimodel/trainedmodel/call.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 7e15372

Please sign in to comment.