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()