diff --git a/public/mozen_full.png b/public/mozen_full.png new file mode 100644 index 0000000000000000000000000000000000000000..a06f5372a7ab5ce1ad618ea96999d0bce2b88645 Binary files /dev/null and b/public/mozen_full.png differ diff --git a/src/api.js b/src/api.js index 27d7d0072323ed8a98c0858f03775a532548172a..4b22647449fd3e40b17798233208eeaffd8f9a09 100644 --- a/src/api.js +++ b/src/api.js @@ -1,6 +1,5 @@ -const serverurl = 'http://localhost:8181/api/' -// const serverurl = '/api/' -// const serverurl = 'https://mozen.gltronic.ovh/api/' +// const serverurl = 'http://localhost:8181/api/' +const serverurl = 'api/' export const api = { // PUBLIC async search (name, tags, param, sort, size, page) { diff --git a/src/views/About.vue b/src/views/About.vue index 8a780a32c24e863a45a3a5ed8fca293fed33f85e..3a3fa3307c585860bc20e3b376c91cc91b52a51e 100644 --- a/src/views/About.vue +++ b/src/views/About.vue @@ -1,5 +1,25 @@ <template> <div class="about container"> - <h1>About page</h1> + <div class="box"> + <h1 class="title">About</h1> + <img src="mozen_full.png" alt="Mozen"> + <br> + <br> + <p>Mozen is open library for machine learning models</p> + <p> + Source code available here: + <a href="https://gitlab.lis-lab.fr/thomas.blanc/ter-modelzoo-frontend">Frontend</a> | + <a href="https://gitlab.lis-lab.fr/thomas.blanc/ter-modelzoo-backend">Backend</a> | + <a href="">Python library</a> + </p> + <p>2020</p> + </div> </div> </template> + +<style scoped> +.about { + margin-top: 20px; + text-align: center; +} +</style> diff --git a/src/views/Docs.vue b/src/views/Docs.vue index 6a2b47da2ba6241e0dc21f2975f200827db67c50..e265cfb2b24a65530155e96cd942bd765e93db94 100644 --- a/src/views/Docs.vue +++ b/src/views/Docs.vue @@ -1,5 +1,26 @@ <template> <div class="docs container"> - <h1>Documentation page</h1> + <div class="box"> + <h1 class="title">Documentation page for Mozen Python lib</h1> + <p>The Mozen Python lib is a companion library for Mozen</p> + <hr> + <h2 class="title is-5">Install</h2> + <div class="content"> + <blockquote>pip install mozen_zoo</blockquote> + </div> + + <h2 class="title is-5">Usage</h2> + <p></p> + <div class="content"> + <blockquote>import mozen_zoo</blockquote> + <blockquote>mozen_zoo.load(model id, r|w)</blockquote> + </div> + </div> </div> </template> + +<style scoped> +.docs { + margin-top: 20px; +} +</style> diff --git a/src/views/Model.vue b/src/views/Model.vue index 7994dfcb5d4fd68c67061b0412de7ac4ff241b6c..bdc8b0f52dc8d11f0e89956369a6901df5b36c4c 100644 --- a/src/views/Model.vue +++ b/src/views/Model.vue @@ -12,6 +12,10 @@ <b-taglist> <b-tag v-for="tag in model.tags" v-bind:key="tag.name" type="is-info">{{tag.name}}</b-tag> </b-taglist> + <hr> + <div class="content"> + <blockquote>mozen_zoo.load({{model.id}}, r)</blockquote> + </div> </div> <div class="column infoColumn"> <div v-if="isAuthor">