Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.
cheder456 edited this page May 29, 2022 · 8 revisions

Welcome to the ASE Annotation WebService wiki!

Here, you will find all the information about the Annotation WebService project.

To view the project, please use the following links -

Demos

Our public domain: https://ase-service-1.iugkfeabdb168.eu-central-1.cs.amazonlightsail.com/

Our demo frontend: https://container-service-2.iugkfeabdb168.eu-central-1.cs.amazonlightsail.com/

Our demo docker-compose: - navigate to "src" folder in this repo and type "docker-compose up" (docker-compose.yml) -> frontend can be reached on http://localhost:3007 \n -> php endpoint can be reached on http://localhost:8089/api/v1

Example api calls

This comment would not exist in a real application. The secret to use is: hsdiwu8&%$$

Finetune

curl --location --request POST 'http://localhost:8089/api/v1/finetune'
--form 'lang="python"'
--form 'code="cHJpbnQoIjEyMyIp"'
--form 'secret="XXXXXXXX"'

cHJpbnQoIjEyMyIp is the python code base64encoded

Predict

curl --location --request POST 'http://localhost:8089/api/v1/highlight'
--form 'lang="python"'
--form 'code="cHJpbnQoIjEyMyIp"'
--form 'secret="XXXXXXXX"'
--form 'mode="json"'