Spaces:
Runtime error
Runtime error
# --- Imports modules --- | |
from modules.module_vocabulary import Vocabulary | |
# --- Imports interfaces --- | |
from interfaces.interface_datos import interface as interface_datos | |
# --- Tool config --- | |
AVAILABLE_LOGS = True # [True | False] | |
LANGUAGE = "spanish" # [spanish] | |
VOCABULARY_SUBSET = "full" # [full] | |
# ToDo: Change the owner of the context dataset from nanom to vialibre | |
CONTEXTS_DATASET = "nanom/splittedspanish3bwc" | |
# --- Init classes --- | |
vocabulary = Vocabulary( | |
subset_name=VOCABULARY_SUBSET | |
) | |
# --- Main App --- | |
iface = interface_datos( | |
vocabulary=vocabulary, | |
contexts=CONTEXTS_DATASET, | |
available_logs=AVAILABLE_LOGS, | |
lang=LANGUAGE | |
) | |
iface.queue(concurrency_count=8) | |
iface.launch(debug=False) |