AI4Midterm / classes /app_state.py
rchrdgwr's picture
Updated application
c6907ac
raw
history blame
483 Bytes
import pprint
class AppState:
def __init__(self):
self.debug = False
self.document_urls = []
self.download_folder = "data/"
self.documents = []
def display(self):
pprint.pprint(self.__dict__)
def set_document_urls(self, document_urls):
self.document_urls = document_urls
def add_document(self, document):
self.documents.append(document)
def set_debug(self, debug):
self.debug = debug