added web server support for human sl #970
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a flask wrapper
flask_wrapper_human_sl_server.py
around thehumanslnet_server.py
It's useful for integration with front ends, to allow them to do web requests to the
humanslnet_server.py
humanslnet_server.py
gives a higher degree of control over the settings of the simulation, which can be preferable over the courser settings found inkatago analysis
This is a working front end for it that I've implemented in ionic, cross platform React.js
![Screenshot at 2024-08-07 21-48-02](https://private-user-images.githubusercontent.com/727070/355963929-69366490-da2e-490b-8043-858648ac1f11.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzk2MjMsIm5iZiI6MTczOTMzOTMyMywicGF0aCI6Ii83MjcwNzAvMzU1OTYzOTI5LTY5MzY2NDkwLWRhMmUtNDkwYi04MDQzLTg1ODY0OGFjMWYxMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNTQ4NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MmUxNzdmZjJkNmUzOTYzNDU4NWU2NzZmNDc5NjY1OTE0MDVjZWY5YmI5YjM2ZTI4MDM1OWNmZmRjMzA1MTBhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.SW0iijBY_HiS6NzZ6hv-g1HZRQFT5x9LbESHN83kPNY)
I'm aiming to compile this to android and ios.
Android has support for pytorch using chaquo , so hopefully that will be doable. chaquo/chaquopy#477