How to run Docker file and Demo

Pull the docker image

docker pull kaistlk/weather:v2.0.0

Run the container

  • When using the GPU,
docker run -d -it -p 8887:8887 --gpus all --name weather kaistlk/weather:v2.0.0 python3 /home/KoBART-summarization/run_api.py 8887 gpu
  • When using the CPU,
docker run -d -it -p 8887:8887 --name weather kaistlk/weather:v2.0.0 python3 /home/KoBART-summarization/run_api.py 8887 cpu

The number "8887" is a port number. Please change them all if you use a different port number.

Connect to Advanced REST client with Chrome

  • GET URL Examples: http://20.98.84.235:8887/api/search/text?source=전기간 전지점 일단위 최고온도 3개&date=2022-03-10 00:00:00

    (Without the Internet, http://127.0.0.1:8887/api/search/text?source=전기간 전지점 일단위 최고온도 3개&date=2022-03-10 00:00:00)

스크린샷 2022-03-12 오후 7 59 39