Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import streamlit as st
|
|
| 2 |
from streamlit_webrtc import webrtc_streamer, WebRtcMode
|
| 3 |
import av
|
| 4 |
import os
|
|
|
|
| 5 |
from twilio.rest import Client
|
| 6 |
from streamlit_image_select import image_select
|
| 7 |
import cv2 as cv
|
|
@@ -18,10 +19,8 @@ def _get_resource_path():
|
|
| 18 |
|
| 19 |
get_resource_path = _get_resource_path
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
os.environ["TWILIO_ACCOUNT_SID"] = "ACf1e76f3fd6e9cbca940decc4ed443c20"
|
| 24 |
-
os.environ["TWILIO_AUTH_TOKEN"] = "
|
| 25 |
|
| 26 |
|
| 27 |
def get_ice_servers():
|
|
@@ -149,4 +148,5 @@ with stream:
|
|
| 149 |
pic.image(image_processing(img), width = 704)
|
| 150 |
|
| 151 |
|
| 152 |
-
recog = st.toggle(":green[Emotion recogntion]", key = "stream", value = True)
|
|
|
|
|
|
| 2 |
from streamlit_webrtc import webrtc_streamer, WebRtcMode
|
| 3 |
import av
|
| 4 |
import os
|
| 5 |
+
from twilio.base.exceptions import TwilioRestException
|
| 6 |
from twilio.rest import Client
|
| 7 |
from streamlit_image_select import image_select
|
| 8 |
import cv2 as cv
|
|
|
|
| 19 |
|
| 20 |
get_resource_path = _get_resource_path
|
| 21 |
|
|
|
|
|
|
|
| 22 |
os.environ["TWILIO_ACCOUNT_SID"] = "ACf1e76f3fd6e9cbca940decc4ed443c20"
|
| 23 |
+
os.environ["TWILIO_AUTH_TOKEN"] = "5cadf5cc7120dd995f11b3dc57e46d52"
|
| 24 |
|
| 25 |
|
| 26 |
def get_ice_servers():
|
|
|
|
| 148 |
pic.image(image_processing(img), width = 704)
|
| 149 |
|
| 150 |
|
| 151 |
+
recog = st.toggle(":green[Emotion recogntion]", key = "stream", value = True)
|
| 152 |
+
|