INNER CODE UNIT · Python
App
neuml/tldrstory · src/python/tldrstory/app.py:200
class App(object):
"""
Streamlit application
"""
def __init__(self, index):
"""
Creates a new application.
Args:
index: index configuration
"""
# Initialize logging
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(module)-10s: %(message)s")
# Load YAML settings
with open(index, "r") as f: