Share
Sign In
공부 내용
flutter open AI API
Y
yeji Kim
👍
Subscribe to '아무튼-작업일지'
Welcome to '아무튼-작업일지'!
By subscribing to my site, you'll be the first to receive notifications and emails about the latest updates, including new posts.
Join SlashPage and subscribe to '아무튼-작업일지'!
Subscribe
👍
Other posts in '공부 내용'See all
yeji Kim
aws 서버 관련
flask_app 시작 시 sudo systemctl daemon-reload sudo systemctl start flask_app sudo systemctl enable flask_app 파일 수정 후 → sudo systemctl restart flask_app sudo fuser -k 8000/tcp (kill my port 8000) sudo journalctl -u flask_app -n 30 xampp sudo /opt/lampp/lampp restart tail -f /opt/lampp/logs/php_error_log 디스크 공간 관리 현재 상태 확인 → df -h tmpfs 마운트 늘리기 sudo mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp pip killed → pip install <package> —no-cache-dir 용량 늘리기 sudo xfs_growfs / 메모리 현재 상태 : free -h RAM swap
yeji Kim
Flask, gunicorn, nginx
flask web application framework 역할 url routing http request handling render dynamic html session management middleware integration gunicorn wsgi (web server gateway interface) http server for unix. concurrency nginx(web server)와 flask application 연결 nginx reverse proxy and web server 역할 reverse proxy load balancing static content serving security caching nginx ↔ gunicorn ↔ flask
yeji Kim
STT flutter 만들기
open AI ↔ flutter .env 통해서 apiKey 숨기기 open AI 프리티어 할당량이 그렇게 많지 않다. whisper는 오픈 소스인 만큼 코드를 바로 다운받아 실행하자. https://github.com/openai/whisper python ↔ flutter 파이썬으로 서버를 만든 후에 플러터 실행, subprocess로 파이썬 서버 같이 실행. api로 통신 ... 파이썬으로 서버 - flask or fast api 모두콘 2022 flutter ML platform channel key point - 데이터를 "어떻게 잘 구조화해서 상호통신하느냐" method channel async method 호출을 사용하여 플랫폼과 통신하는 데 사용되는 채널 method channel = future event channel 플랫폼에서 event stream을 수신하는 데 사용되는 채널 event channel = stream 요약 native의 hw 기능 또는 api 사용 method, event channel w future, stream native-flutter fw 간 데이터 상호 통신