Skip to content

findit-ugm/twibbon-findit23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twibbon Find IT! 2023

Ini merupakan repo ML API untuk pengecekan twibbon peserta Find IT!.


Prerequisite

  • python3.10
  • python3.10-venv

Create python virtual environment ex; python-venv, python-virtualenv etc. Type script on active directories

$ virtualenv -m venv

Activate your python environment

$ source bin/activate
(venv)$ 

Install dependencies.

(venv)$ pip install -r requirements.txt

Activate FastApi

(venv)$ python src/main.py

Access at http://0.0.0.0:8000/docs/

Input instagram format

https://www.instagram.com/p/Co3XdlDBqQx/ https://www.instagram.com/p/Co3XdlDBqQx

Curl Example

curl -X 'POST' \
  'http://10.211.55.3:8000/v1/predict/tf/' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "category": "string",
  "img_url": ["https://www.instagram.com/p/Co4mP5nBQ6B/", "https://www.instagram.com/p/Co4mNvrh_lv/", "https://www.instagram.com/p/Co4mKhWh-MK/", "https://www.instagram.com/p/Co3XkbyBQ9H/"]
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published