Open t2easure opened 1 year ago
잘하셨습니다 고생 많으셨어요
get_summarization_result()
와 get_text_ocr_result()
를 직접 사용하셨네요
api 폴더 - AI.py - AIAPI class를 잘 보시면,
OCR기능은 query_image2text()
, text 요약 기능은 query_text2text()
에
각각 구현되어 있습니다.
from api.AI import AIAPI
text = AIAPI.query_image2text(query)
title, summary = AIAPI.query_text2text(query)
이런식으로 class 내의 method를 사용할 수 있습니다.
repo : https://github.com/t2easure/2023-Summer-Project
코드 설명