Update app.py
Browse files
app.py
CHANGED
@@ -12,4 +12,15 @@ from feat.utils import FEAT_EMOTION_COLUMNS
|
|
12 |
import torch
|
13 |
from PIL import Image
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
import torch
|
13 |
from PIL import Image
|
14 |
|
15 |
+
def get_book_variable_module_name(module_name):
|
16 |
+
module = globals().get(module_name, None)
|
17 |
+
book = {}
|
18 |
+
if module:
|
19 |
+
book = {key: value for key, value in module.__dict__.items() if not (key.startswith('__') or key.startswith('_'))}
|
20 |
+
return book
|
21 |
+
|
22 |
+
import config
|
23 |
+
|
24 |
+
book = get_book_variable_module_name('config')
|
25 |
+
for key, value in book.items():
|
26 |
+
print "{:<30}{:<100}".format(key, value)
|