@ -2,12 +2,12 @@
from flask import Flask, render_template, request, Response
# from weasyprint import HTML
from .pagedjs import make_pdf
from .settings import DEBUG, BASEURL
from pagedjs import make_pdf
from settings import DEBUG, BASEURL
# Spacy tries to import CUDA, do not break when it fails
try:
from .paseo import crear_camino
from paseo import crear_camino
except ModuleNotFoundError:
pass
@ -1,7 +1,7 @@
import subprocess
import tempfile
import os.path
from .settings import PAGEDJS_BINARY_PATH
from settings import PAGEDJS_BINARY_PATH
basepath = os.path.abspath(os.path.dirname(__file__))
@ -1,5 +1,5 @@
from .parse_trees import load_trees_from_json
from .medialab import crear_base_datos, paso
from parse_trees import load_trees_from_json
from medialab import crear_base_datos, paso
from random import shuffle, random
# creating Markov Chain in text & trees