diff --git a/mlaas/__pycache__/__init__.cpython-310.pyc b/mlaas/__pycache__/__init__.cpython-310.pyc index f2bc6cd3b7de33b9a46fc6e25fe8f36dd89d17e3..5f9f80acf89f24c86d2630c27ca57abd24f33742 100644 Binary files a/mlaas/__pycache__/__init__.cpython-310.pyc and b/mlaas/__pycache__/__init__.cpython-310.pyc differ diff --git a/mlaas/__pycache__/settings.cpython-310.pyc b/mlaas/__pycache__/settings.cpython-310.pyc index 471722be635a3fcca561a3256b3fb155806e55a1..808a682e145f50eb85610c1519b97d6f3228123c 100644 Binary files a/mlaas/__pycache__/settings.cpython-310.pyc and b/mlaas/__pycache__/settings.cpython-310.pyc differ diff --git a/mlaas/__pycache__/urls.cpython-310.pyc b/mlaas/__pycache__/urls.cpython-310.pyc index e5f9ca009c49a4556d1c9e37d287c929c155d0d2..d1901d71e5ab6b931fda5a92544cc0134df35512 100644 Binary files a/mlaas/__pycache__/urls.cpython-310.pyc and b/mlaas/__pycache__/urls.cpython-310.pyc differ diff --git a/mlaas/__pycache__/wsgi.cpython-310.pyc b/mlaas/__pycache__/wsgi.cpython-310.pyc index 41176ff0429c8db57acaf33be2c694d0db1997b7..db38895afcdeb1b87e1860f6c5e52cfbe3bfdd04 100644 Binary files a/mlaas/__pycache__/wsgi.cpython-310.pyc and b/mlaas/__pycache__/wsgi.cpython-310.pyc differ diff --git a/mlaas/middleware/__pycache__/__init__.cpython-310.pyc b/mlaas/middleware/__pycache__/__init__.cpython-310.pyc index a3c0930bc7e7604c0ee2b574c56129d8573497dc..bcbe742706f165151f7f033dc3481d34f0d83b4c 100644 Binary files a/mlaas/middleware/__pycache__/__init__.cpython-310.pyc and b/mlaas/middleware/__pycache__/__init__.cpython-310.pyc differ diff --git a/mlaas/middleware/__pycache__/ai_engineer_auth.cpython-310.pyc b/mlaas/middleware/__pycache__/ai_engineer_auth.cpython-310.pyc index a1366c37d9f748f5ce6c1aaf8ec1d9ecd4d7f2b0..8e8eca8dd83ab58ce1a5b19f41ada518b0cab366 100644 Binary files a/mlaas/middleware/__pycache__/ai_engineer_auth.cpython-310.pyc and b/mlaas/middleware/__pycache__/ai_engineer_auth.cpython-310.pyc differ diff --git a/mlaas/middleware/__pycache__/autologout.cpython-310.pyc b/mlaas/middleware/__pycache__/autologout.cpython-310.pyc index fe3a529db247c22ba72c90304dc4d0a1a319315a..196236e92d012bf7c390d3ed49b859bb8bd7c743 100644 Binary files a/mlaas/middleware/__pycache__/autologout.cpython-310.pyc and b/mlaas/middleware/__pycache__/autologout.cpython-310.pyc differ diff --git a/prediction_service/__pycache__/__init__.cpython-310.pyc b/prediction_service/__pycache__/__init__.cpython-310.pyc index 98ab6f8443d50cb07f8de13b08b76835829e582d..c94643b1202d4d4057431f19b2317d57848efd62 100644 Binary files a/prediction_service/__pycache__/__init__.cpython-310.pyc and b/prediction_service/__pycache__/__init__.cpython-310.pyc differ diff --git a/prediction_service/__pycache__/admin.cpython-310.pyc b/prediction_service/__pycache__/admin.cpython-310.pyc index 50aa0f37e655a4e3cbe61002b4008c38c3a1f044..3d0aa399fc21517c1e247f49738d44faa3cf2c1c 100644 Binary files a/prediction_service/__pycache__/admin.cpython-310.pyc and b/prediction_service/__pycache__/admin.cpython-310.pyc differ diff --git a/prediction_service/__pycache__/apps.cpython-310.pyc b/prediction_service/__pycache__/apps.cpython-310.pyc index dc785a10c849cda030cb6295d12ee08f10b1ca6d..e40330c1af2ec3385920d41c872e75c0c57939cd 100644 Binary files a/prediction_service/__pycache__/apps.cpython-310.pyc and b/prediction_service/__pycache__/apps.cpython-310.pyc differ diff --git a/prediction_service/__pycache__/forms.cpython-310.pyc b/prediction_service/__pycache__/forms.cpython-310.pyc index 15338057eaeb98dba0f97dd1b7e399d6fedff4f2..652e31d73c46f97533467bb7939be82466183871 100644 Binary files a/prediction_service/__pycache__/forms.cpython-310.pyc and b/prediction_service/__pycache__/forms.cpython-310.pyc differ diff --git a/prediction_service/__pycache__/models.cpython-310.pyc b/prediction_service/__pycache__/models.cpython-310.pyc index 86d32afbfa6cf15951ac4193cb4f909a2bd01b05..fb33c32ae56b34b9ce9a294a115e9424d05195bd 100644 Binary files a/prediction_service/__pycache__/models.cpython-310.pyc and b/prediction_service/__pycache__/models.cpython-310.pyc differ diff --git a/prediction_service/__pycache__/urls.cpython-310.pyc b/prediction_service/__pycache__/urls.cpython-310.pyc index 11ce276c42a965cebd7cffe1cd942b37a7a4da03..406367e661d8f47678e9558094ac176faa799321 100644 Binary files a/prediction_service/__pycache__/urls.cpython-310.pyc and b/prediction_service/__pycache__/urls.cpython-310.pyc differ diff --git a/prediction_service/__pycache__/views.cpython-310.pyc b/prediction_service/__pycache__/views.cpython-310.pyc index 3dd69d56693576b8116aa70649eb826694a830d7..2e755bf083b35911ef1295762512091c0b587d84 100644 Binary files a/prediction_service/__pycache__/views.cpython-310.pyc and b/prediction_service/__pycache__/views.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0001_initial.cpython-310.pyc b/prediction_service/migrations/__pycache__/0001_initial.cpython-310.pyc index 3d7e589bea1e4c5f4665e8f7fed9ba86d9f9d76c..9aa0439f8eba863c159d8a535b9b9954d5858878 100644 Binary files a/prediction_service/migrations/__pycache__/0001_initial.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0001_initial.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0002_remove_aiengineer_trained_models_and_more.cpython-310.pyc b/prediction_service/migrations/__pycache__/0002_remove_aiengineer_trained_models_and_more.cpython-310.pyc index 71796b5bbf5d1fa2dc385e69b2c8dfbc7c04313e..5e419840ba17e246de8a82027a70aaceeee25484 100644 Binary files a/prediction_service/migrations/__pycache__/0002_remove_aiengineer_trained_models_and_more.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0002_remove_aiengineer_trained_models_and_more.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0003_post.cpython-310.pyc b/prediction_service/migrations/__pycache__/0003_post.cpython-310.pyc index 527c740512e04796a6216c293fb15cfa57b540f9..e3a6267611c5d63465d80b26fd07327deea0fc9f 100644 Binary files a/prediction_service/migrations/__pycache__/0003_post.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0003_post.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0004_alter_userprofile_role.cpython-310.pyc b/prediction_service/migrations/__pycache__/0004_alter_userprofile_role.cpython-310.pyc index 590d7bb4211668475f3af983e58ee1fa1a4460e7..fe6e8a2e38e9cf77f98402ffc57f0ad352d9e4f0 100644 Binary files a/prediction_service/migrations/__pycache__/0004_alter_userprofile_role.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0004_alter_userprofile_role.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0005_alter_post_id_delete_financeteam.cpython-310.pyc b/prediction_service/migrations/__pycache__/0005_alter_post_id_delete_financeteam.cpython-310.pyc index 3fa733d1455c149fc4ea64f02dca07a35a5a050a..a5b26f142235ea9facc86c8e169568620fad9ea2 100644 Binary files a/prediction_service/migrations/__pycache__/0005_alter_post_id_delete_financeteam.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0005_alter_post_id_delete_financeteam.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0006_mlmodel.cpython-310.pyc b/prediction_service/migrations/__pycache__/0006_mlmodel.cpython-310.pyc index fe4ff51782739ce26b1bdb9ba0e9d8cc728cc0fe..bacd82fd32abafc4179758965f95db8e7a203c46 100644 Binary files a/prediction_service/migrations/__pycache__/0006_mlmodel.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0006_mlmodel.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0007_post_mlmodel.cpython-310.pyc b/prediction_service/migrations/__pycache__/0007_post_mlmodel.cpython-310.pyc index 0dfbab7d3237e0f7ad51c9c3774d13cf05af10d2..60e56c987d571c764790bf3e927f1fc2364666de 100644 Binary files a/prediction_service/migrations/__pycache__/0007_post_mlmodel.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0007_post_mlmodel.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0008_post_slug.cpython-310.pyc b/prediction_service/migrations/__pycache__/0008_post_slug.cpython-310.pyc index 1a668ac7cfabcde2f9e436dd8234495a8e934406..269df00d15384796a285a6073ff7316546c3c935 100644 Binary files a/prediction_service/migrations/__pycache__/0008_post_slug.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0008_post_slug.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/0009_aiengineer_is_authorized.cpython-310.pyc b/prediction_service/migrations/__pycache__/0009_aiengineer_is_authorized.cpython-310.pyc index e847c26be1a72baa8ed5e9eba9cc5fa6cac72b88..32dead685fc5ed858048143e5f4290b3228bde7d 100644 Binary files a/prediction_service/migrations/__pycache__/0009_aiengineer_is_authorized.cpython-310.pyc and b/prediction_service/migrations/__pycache__/0009_aiengineer_is_authorized.cpython-310.pyc differ diff --git a/prediction_service/migrations/__pycache__/__init__.cpython-310.pyc b/prediction_service/migrations/__pycache__/__init__.cpython-310.pyc index c50df215fb18cd49a18709f940ba83a0cf09e19d..530685db3e01649a821eceb29b96c5bbafbf48e4 100644 Binary files a/prediction_service/migrations/__pycache__/__init__.cpython-310.pyc and b/prediction_service/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/prediction_service/templates/prediction_service/home.html b/prediction_service/templates/prediction_service/home.html index 295a48d47d5ab92fea4069764d399d5bb0904160..3f08283350cc74d1571e4357245852b1e200f182 100644 --- a/prediction_service/templates/prediction_service/home.html +++ b/prediction_service/templates/prediction_service/home.html @@ -20,8 +20,18 @@ </div> {% endfor %} </div> + </div> + + <!-- Square plus button --> + <div style="position: fixed; bottom: 20px; right: 20px;"> + <a href="{% url 'MLAAS-create_post' %}"> + <button style="width: 50px; height: 50px; border-radius: 50%; background-color: #007bff; color: white; font-size: 24px; border: none;">+</button> + </a> + </div> + + {% endblock content %} \ No newline at end of file diff --git a/prediction_service/views.py b/prediction_service/views.py index 54f7e6ab521a5f05f5a75cb065ef6bf599c9195d..31cb174b27b3c1fa702f5eb3f332c83868c5f0a2 100644 --- a/prediction_service/views.py +++ b/prediction_service/views.py @@ -106,7 +106,7 @@ def create_post(request): return redirect('MLAAS-home') # Redirect to home or another appropriate page else: form = PostForm() - return render(request, 'MLAAS-create_post', {'form': form}) + return render(request, 'prediction_service/create_post.html', {'form': form}) import os import io @@ -166,4 +166,4 @@ def mlmodel(request, pk): layercount = str(mlmodel.layers) return render(request, "prediction_service/model.html", {'img_str': img_str, - 'layer': layercount,}) + 'layer': layercount,}) \ No newline at end of file