From 0ccfd98e32ac6c7b296d2d9bba3770c0187558d3 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Mon, 16 Sep 2024 13:16:26 +0200 Subject: [PATCH 1/2] Initial Flask Setup --- .gitignore | 1 + py/.idea/.gitignore | 3 --- py/.idea/inspectionProfiles/profiles_settings.xml | 6 ------ py/.idea/misc.xml | 7 ------- py/.idea/modules.xml | 8 -------- py/.idea/py.iml | 8 -------- py/.idea/vcs.xml | 6 ------ py/venv.sh | 2 +- py/web_flask.py | 11 +++++++++++ 9 files changed, 13 insertions(+), 39 deletions(-) delete mode 100644 py/.idea/.gitignore delete mode 100644 py/.idea/inspectionProfiles/profiles_settings.xml delete mode 100644 py/.idea/misc.xml delete mode 100644 py/.idea/modules.xml delete mode 100644 py/.idea/py.iml delete mode 100644 py/.idea/vcs.xml mode change 100644 => 100755 py/venv.sh create mode 100644 py/web_flask.py diff --git a/.gitignore b/.gitignore index c65a729..a5bc547 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ venv/ __pycache__ +.idea/ diff --git a/py/.idea/.gitignore b/py/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/py/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/py/.idea/inspectionProfiles/profiles_settings.xml b/py/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/py/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/py/.idea/misc.xml b/py/.idea/misc.xml deleted file mode 100644 index f5d7485..0000000 --- a/py/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/py/.idea/modules.xml b/py/.idea/modules.xml deleted file mode 100644 index 3a65488..0000000 --- a/py/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/py/.idea/py.iml b/py/.idea/py.iml deleted file mode 100644 index 451946f..0000000 --- a/py/.idea/py.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/py/.idea/vcs.xml b/py/.idea/vcs.xml deleted file mode 100644 index 6c0b863..0000000 --- a/py/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/py/venv.sh b/py/venv.sh old mode 100644 new mode 100755 index ed72fee..f710380 --- a/py/venv.sh +++ b/py/venv.sh @@ -1,7 +1,7 @@ #!/bin/bash -rm -rf venv/ virtualenv venv source venv/bin/activate pip install transformers pip install torch +pip install flask diff --git a/py/web_flask.py b/py/web_flask.py new file mode 100644 index 0000000..3cc2681 --- /dev/null +++ b/py/web_flask.py @@ -0,0 +1,11 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route('/') +def index(): + return app.send_static_file('index.html') + +if __name__ == '__main__': + app.run() -- 2.39.5 From 247b8a36f3526e349df5569a5b15078dcc6786d2 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Mon, 16 Sep 2024 13:17:33 +0200 Subject: [PATCH 2/2] .gitignore vscode/ --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index a5bc547..15fae49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ venv/ __pycache__ .idea/ +.vscode/ -- 2.39.5