|
import streamlit as st |
|
from streamlit_webrtc import webrtc_streamer, WebRtcMode |
|
import av |
|
import os |
|
from twilio.rest import Client |
|
from streamlit_image_select import image_select |
|
import cv2 as cv |
|
import numpy as np |
|
import math |
|
from feat import Detector |
|
from feat.utils import FEAT_EMOTION_COLUMNS |
|
import torch |
|
from PIL import Image |
|
|
|
def get_book_variable_module_name(module_name): |
|
module = globals().get(module_name, None) |
|
book = {} |
|
if module: |
|
book = {key: value for key, value in module.__dict__.items() if not (key.startswith('__') or key.startswith('_'))} |
|
return book |
|
|
|
import config |
|
|
|
book = get_book_variable_module_name('config') |
|
for key, value in book.items(): |
|
print "{:<30}{:<100}".format(key, value) |