Skip to content

Commit

Permalink
Merge pull request #62 from UoMResearchIT/spucsvi-welcome-message
Browse files Browse the repository at this point in the history
Spucsvi welcome message
  • Loading branch information
OliverWoolland authored Oct 22, 2024
2 parents d6b3cd8 + 2faf281 commit 765bccd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/SPUCSVi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN pip install -r /spucsvi/requirements.txt
COPY ./*.py /spucsvi/
COPY ./templates /spucsvi/templates

CMD ["gunicorn", "-w", "4", "spucsvi:app", "-b", "0.0.0.0:8322", "--log-level", "warning"]
CMD ["gunicorn", "-w", "1", "spucsvi:app", "-b", "0.0.0.0:8322", "--log-level", "warning"]
21 changes: 20 additions & 1 deletion code/SPUCSVi/spucsvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
import pandas as pd
from io import StringIO
import os
import os, sys

logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)
Expand All @@ -14,6 +14,24 @@

app = Flask(__name__)

# Print the initialization message
print(
r"""
.-'''-. .-------. ___ _ _______ .-'''-. ,---. ,---..-./`)
/ _ \\ _(`)_ \.' | | | / __ \ / _ \| / | |\ .-.')
(`' )/`--'| (_ o._)|| .' | | | ,_/ \__) (`' )/`--'| | | .'/ `-' \
(_ o _). | (_,_) /.' '_ | |,-./ ) (_ o _). | | _ | | `-'`"`
(_,_). '. | '-.-' ' ( \.-.|\ '_ '`) (_,_). '. | _( )_ | .---.
.---. \ :| | ' (`. _` /| > (_) ) __ .---. \ :\ (_ o._) / | |
\ `-' || | | (_ (_) _)( . .-'_/ )\ `-' | \ (_,_) / | |
\ / / ) \ / . \ / `-'`-' / \ / \ / | |
`-...-' `---' ``-'`-'' `._____.' `-...-' `---` '---'
:::: SPUC Super Visualizer serving on localhost:8322 ::::
"""
)
sys.stdout.flush()


@app.route("/")
def spucsvi():
Expand Down Expand Up @@ -62,4 +80,5 @@ def put_unicorn():


if __name__ == "__main__":

app.run()

0 comments on commit 765bccd

Please sign in to comment.