diff --git a/requirements.txt b/requirements.txt index 568e4fc..75747ff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ spacy +weasyprint \ No newline at end of file diff --git a/scripts/app.py b/scripts/app.py new file mode 100644 index 0000000..f422af6 --- /dev/null +++ b/scripts/app.py @@ -0,0 +1,10 @@ +#!/usr/bin/env/ python + +from flask import Flask, render_template + +BASEURL = '' +app = Flask(__name__) + +@app.route('{}/'.format(BASEURL)) +def index(): + return 'Hello world' diff --git a/scripts/paseo.py b/scripts/paseo.py index 02cf760..7acdf85 100644 --- a/scripts/paseo.py +++ b/scripts/paseo.py @@ -12,7 +12,7 @@ def path(word, words_tree, words_path, trees): posibilities, dice, next_word = paso(word, words_tree, words_path) - while len(itinerary) < 100 and next_word not in '.!?': + while len(itinerary) < 50 and next_word not in '.!?': if next_word in ',:;\)': current_step = current_step[:-1] current_step += ' ' diff --git a/scripts/run.sh b/scripts/run.sh new file mode 100644 index 0000000..a1709d8 --- /dev/null +++ b/scripts/run.sh @@ -0,0 +1,3 @@ +export FLASK_APP=app.py +export FLASK_ENV=development +flask run \ No newline at end of file diff --git a/scripts/templates/index.html b/scripts/templates/index.html new file mode 100644 index 0000000..6116828 --- /dev/null +++ b/scripts/templates/index.html @@ -0,0 +1 @@ +

Hello world

\ No newline at end of file diff --git a/scripts/templates/index.pdf b/scripts/templates/index.pdf new file mode 100644 index 0000000..dde0499 Binary files /dev/null and b/scripts/templates/index.pdf differ