From bbb902995a6dcaf7640c74a17c8e0bae97bbf685 Mon Sep 17 00:00:00 2001 From: Gijs Date: Fri, 4 Jun 2021 11:05:27 +0200 Subject: [PATCH] Requirements. --- requirements.txt | 1 + scripts/app.py | 10 ++++++++++ scripts/paseo.py | 2 +- scripts/run.sh | 3 +++ scripts/templates/index.html | 1 + scripts/templates/index.pdf | Bin 0 -> 5430 bytes 6 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 scripts/app.py create mode 100644 scripts/run.sh create mode 100644 scripts/templates/index.html create mode 100644 scripts/templates/index.pdf 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 0000000000000000000000000000000000000000..dde0499f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