[python/ai/llm/langchain/gpt] python에서 gpt 사용하기 #.env 설정 #chat-gpt에서 api 키 값을 받아서 설정한다. #notebook 파일 생성 notebook.ipynb from langchain.chat_models import ChatOpenAI chat = ChatOpenAI(model_name="gpt-3.5-turbo",) chat = chat.predict("프랑스에 대해서 짧게 이야기해줘?") chat 이후 재생 누르면 기본적인 정보 노출 #python #ai #llm #langchain #gpt
[aws/ec2] amazonlinux2에서 nginx로 react 배포하기 #패키지 인스톨 및 노드,nginx 설치 sudo yum update -y sudo yum install -y git curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - sudo yum install -y nodejs sudo amazon-linux-extras install nginx1 #서비스 시작 / 부팅시 자동시작 sudo systemctl start nginx sudo systemctl enable nginx #아래 git 주소를 클론하여 경로 설정 git clone https://github.com/gofogo2/2023-ifa-stamp.git -b world..
[react/swiper] react환경에서 완벽한 swiper 구현 #swiperjs를 활용하여 완벽한 반응형 swiper 구현 https://swiperjs.com/ Swiper - The Most Modern Mobile Touch Slider Swiper is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior. swiperjs.com 사용해본 결과 swiperjs는 버전에 따라서, function들이 제법 바뀌어서 그냥 고정 버전으로 설명 후 해당 버전을 이용하는 걸 추천한다. #설치 (11.0.7) npx create-react-app npm install..