묻고 답해요
131만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결챗GPT와 파이썬으로 주식 자동매매 앱 및 웹 투자 리포트 만들기
같은 질문으로 받은 코드를 돌렸는데 최종 수익률이 다를 수도 있나요?
구현 코드는 달라질 수 있지만, 날짜 설정은 같으니까 최종 수익률은 같을거라고 생각했는데 제 챗gpt가 준 코드의 결과는 마이너스 수익률이네요코드 자체가 잘못된 걸까요?코드도 첨부합니다.
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
ipykernel 패키지 설치 실패
ch02_env 가상환경에서 2 + 2 셀의 실행 버튼을 누른 뒤 설치를 진행하였을때 발생한 에러입니다!vscode랑 python을 삭제하고 재설치 하였는데도 여전히 문제가 발생되었습니다pip install requests 명령어를 사용하여 다른 패키지를 설치 하려고 했을 때도 문제가 발생하였습니다 해결 방법을 알려주시면 감사하겠습니다!
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
카카오톡 채널 및 챗봇 생성하기 1분 30초에서 진행하고 있는데요
카카오톡 채널 및 챗봇 생성하기 1분 30초에서 진행하고 있는데요. 채널 홍보가 어디있나요?
-
미해결모두를 위한 대규모 언어 모델 LLM Part 3 - 구글 제미나이(Google Gemini) API, OpenAI API와 젬마(Gemma)로 AI 어플리케이션 만들기
PDF RAG 제작 프로젝트 진행 중 답변 정확도를 올리기 위해 무엇을 해야 할지 모르겠습니다.
안녕하세요! 현재 Gemini, Streamlit, LangChain을 이용하여 오류 Q&A 모음 PDF 문서를 학습시켜 해당 문서로 질의응답을 할 수 있는 RAG Chatbot을 구현하는 중에 있습니다.PDF 내용이 정제가 되어 있지 않지만 175개의 모든 페이지를 다 읽어온 것은 확인했는데 같은 페이지에 있는 내용이더라도 답변하는 것이 있고 아닌 것이 있습니다. 또한 같은 질문을 해도 어떤 때는 잘 대답하고 어떤때는 문서에 없다고 대답하는 현상을 발견하고 있습니다... 이런 현상들의 원인이 뭔지 또한 학습시키는 문서를 정제하면 대답 정확도가 조금 올라가는지..어떤 형식으로 문서를 정제해야 할지, PDF보단 WORD나 CSV 파일이 더 정확도가 올라갈지 등등ChatBot의 정확도를 올릴려면 어떤 방식들을 시도해 봐야 하는지 감이 잡히지 않아 질문드립니다.
-
미해결모두를 위한 대규모 언어 모델 LLM Part 3 - 구글 제미나이(Google Gemini) API, OpenAI API와 젬마(Gemma)로 AI 어플리케이션 만들기
[긴급 최종질문수정16:47] 지금 이런 에러가 계속해서 연달아 나고 있는데 진행이 아예 안 됩니다
해결됐어요
-
미해결스트림릿(Streamlit)을 활용한 파이썬 웹앱 제작하기
국민연금 데이터 import관련 문의
안녕하세요 유용한 강의 감사드립니다.깃헙 코드를 그대로 copy하여 streamlit에 export하셨는데 혹시 아래 Data_dir는 어떻게 연계시키신건지 궁금합니다.데이터가 없으면 빈껍데기 화면만 보일것 같아서요 예) local pc를 의미함, GCP 와 연결되어 있으나 아래 코드에서는 보이지 않음 등등...import os import warnings import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns warnings.filterwarnings('ignore') pd.set_option('display.float_format', '{:.1f}'.format) pd.set_option('display.max_columns', None) plt.rcParams['font.family'] = "AppleGothic" DATA_DIR = '.'df = pd.read_csv(os.path.join(DATA_DIR, 'national-pension.csv'), encoding='cp949') df.head(3)
-
해결됨챗GPT와 파이썬으로 주식 자동매매 앱 및 웹 투자 리포트 만들기
pykrx 설치중 다음과 같은 에러가 뜹니다.
(사진)
-
미해결스트림릿(Streamlit)을 활용한 파이썬 웹앱 제작하기
오류 메시지 궁금 합니다.
이 오류 메시지는 왜 나오는걸까요??뷰티풀숲을 pip 구문으로 설치 했음에도 불구하고 계속 나오는데요 해결 방법을 알 수 있을까요?
-
미해결스트림릿(Streamlit)을 활용한 파이썬 웹앱 제작하기
streamlit 가상환경 터미널에서 여는 방법
streamlit-app 을 activiate하는 명령어는 알려주셨습니다.(conda activate streamlit-app) 혹시 streamlit 가상환경을 여는 terminal명령어는 뭔가요? 선생님강의에는 처음부터 열려있어서요 혹시 import streamlit as st를 입력하면 자동으로 찾아가는건가요?
-
미해결파이썬 Streamlit 활용한 웹 자동화 업무, 데이터 검색 및 시각화
강의 자료는 어떻게 볼 수 있어요?
강의 자료 링크를 눌러도 어떤 링크도 보이지를 않는데 어떻게 볼 수 있나요?
-
해결됨스트림릿(Streamlit)을 활용한 파이썬 웹앱 제작하기
visual studio 에서 terminal 부분에서 오류가 있습니다.
anaconda prompt 에서는 잘되는데 visual studio 터미널에서 하면 되지 않네요...
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
텔레그램 API 사용법 익히기
getupdates 이용하는 부분에서 채팅을 입력하거나 안하거나 상관없이 계속 저런 결과가 나옵니다.토큰도 입력하였고 이전강의까지는 문제없이 잘됐는데 뭐가 문제인지 모르겟네요
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
배포 사이트 api 키 입력
배포할때 항상 api 키를 사이트에서 번거롭게 입력하지 않고자동으로 쿠키나 이런거로 자동완성되거나 키를 입력하지 않는 방법은 없을까요?
-
해결됨스트림릿(Streamlit)을 활용한 파이썬 웹앱 제작하기
코드는 어디서 볼 수 있는거죠?
코드 볼 수 있는 곳이 안보이네요.파일 올려주시면 감사하겠습니다. 그리고 해당 링크들어가서 실행하면 아래와 같은 오류가 뜹니다.InvalidRequestErro: The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecationsr 사용하고 있는 모델이 중지된거같은데 한번 알아봐주시면 감사하겠습니다.
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
결과값 출력이 한줄로 통으로 나와요.
json 데이터 확인하는 강의에서 print(response) 입력후 선생님처럼 정리되서 안나오고 결과값이 한줄 통으로 나오는데요... 가독성이 떨어져서.. 설정이 따로 있는걸까요?
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
키 등록했는하고 카드 등록했는데 429오류가 발생합니다.
RateLimitError: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}첫번째 계정으로 카드 등록하고 11달러 결제 했는데 위 오류가 발생합니다.혹시 몰라 새로 구글 계정을 만들었는데도 동일한 오류가 발생합니다.
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
ch09의 '01_yt_extract_summerize_exp.ipynb' 실습중 에러
안녕하세요 ch09의 '01_yt_extract_summerize_exp.ipynb' 실습중에 마지막 'googletrans' 설치 및 실행시 오류가 발생합니다. openai 랑 googletrans 에서 사용하는 라이브러리가 충돌나는거 같은데 해결방법 있을까요? googletrans 설치시pip install googletrans==3.1.0a0 Collecting googletrans==3.1.0a0 Using cached googletrans-3.1.0a0-py3-none-any.whl Collecting httpx==0.13.3 (from googletrans==3.1.0a0) Using cached httpx-0.13.3-py3-none-any.whl.metadata (25 kB) Requirement already satisfied: certifi in e:\python\inflearn_chatgpt-main\ch09\ch09_env\lib\site-packages (from httpx==0.13.3->googletrans==3.1.0a0) (2024.2.2) Collecting hstspreload (from httpx==0.13.3->googletrans==3.1.0a0) Using cached hstspreload-2024.3.1-py3-none-any.whl.metadata (2.1 kB) Requirement already satisfied: sniffio in e:\python\inflearn_chatgpt-main\ch09\ch09_env\lib\site-packages (from httpx==0.13.3->googletrans==3.1.0a0) (1.3.1) Collecting chardet==3.* (from httpx==0.13.3->googletrans==3.1.0a0) Using cached chardet-3.0.4-py2.py3-none-any.whl.metadata (3.2 kB) Collecting idna==2.* (from httpx==0.13.3->googletrans==3.1.0a0) Using cached idna-2.10-py2.py3-none-any.whl.metadata (9.1 kB) Collecting rfc3986<2,>=1.3 (from httpx==0.13.3->googletrans==3.1.0a0) Using cached rfc3986-1.5.0-py2.py3-none-any.whl.metadata (6.5 kB) Collecting httpcore==0.9.* (from httpx==0.13.3->googletrans==3.1.0a0) Using cached httpcore-0.9.1-py3-none-any.whl.metadata (4.6 kB) Collecting h11<0.10,>=0.8 (from httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached h11-0.9.0-py2.py3-none-any.whl.metadata (8.1 kB) Collecting h2==3.* (from httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached h2-3.2.0-py2.py3-none-any.whl.metadata (32 kB) Collecting hyperframe<6,>=5.2.0 (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached hyperframe-5.2.0-py2.py3-none-any.whl.metadata (7.2 kB) Collecting hpack<4,>=3.0 (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached hpack-3.0.0-py2.py3-none-any.whl.metadata (7.0 kB) Using cached httpx-0.13.3-py3-none-any.whl (55 kB) Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB) Using cached httpcore-0.9.1-py3-none-any.whl (42 kB) Using cached idna-2.10-py2.py3-none-any.whl (58 kB) Using cached h2-3.2.0-py2.py3-none-any.whl (65 kB) Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Using cached hstspreload-2024.3.1-py3-none-any.whl (1.1 MB) Using cached h11-0.9.0-py2.py3-none-any.whl (53 kB) Using cached hpack-3.0.0-py2.py3-none-any.whl (38 kB) Using cached hyperframe-5.2.0-py2.py3-none-any.whl (12 kB) Installing collected packages: rfc3986, hyperframe, hpack, h11, chardet, idna, hstspreload, h2, httpcore, httpx, googletrans Attempting uninstall: h11 Found existing installation: h11 0.14.0 Uninstalling h11-0.14.0: Successfully uninstalled h11-0.14.0 Attempting uninstall: idna Found existing installation: idna 3.6 Uninstalling idna-3.6: Successfully uninstalled idna-3.6 Attempting uninstall: httpcore Found existing installation: httpcore 1.0.4 Uninstalling httpcore-1.0.4: Successfully uninstalled httpcore-1.0.4 Attempting uninstall: httpx Found existing installation: httpx 0.27.0 Uninstalling httpx-0.27.0: Successfully uninstalled httpx-0.27.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. openai 1.14.1 requires httpx<1,>=0.23.0, but you have httpx 0.13.3 which is incompatible. Successfully installed chardet-3.0.4 googletrans-3.1.0a0 h11-0.9.0 h2-3.2.0 hpack-3.0.0 hstspreload-2024.3.1 httpcore-0.9.1 httpx-0.13.3 hyperframe-5.2.0 idna-2.10 rfc3986-1.5.0 설치오류 무시하고 google_trans() 실행시--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[14], line 1 ----> 1 from googletrans import Translator 3 def google_trans(messages): 4 google = Translator() File e:\Python\inflearn_chatGPT-main\ch09\ch09_env\Lib\site-packages\googletrans\__init__.py:6 2 __all__ = 'Translator', 3 __version__ = '3.1.0-alpha' ----> 6 from googletrans.client import Translator 7 from googletrans.constants import LANGCODES, LANGUAGES # noqa File e:\Python\inflearn_chatGPT-main\ch09\ch09_env\Lib\site-packages\googletrans\client.py:27 22 from googletrans.models import Translated, Detected 24 EXCLUDES = ('en', 'ca', 'fr') ---> 27 class Translator: 28 """Google Translate ajax API implementation class 29 30 You have to create an instance of Translator to use this API (...) 52 :type raise_exception: boolean 53 """ 55 def __init__(self, service_urls=DEFAULT_CLIENT_SERVICE_URLS, user_agent=DEFAULT_USER_AGENT, 56 raise_exception=DEFAULT_RAISE_EXCEPTION, ... 59 http2=True): 61 self.client = httpx.Client(http2=http2) 62 if proxies is not None: # pragma: nocover AttributeError: module 'httpcore' has no attribute 'SyncHTTPTransport' Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
-
미해결모두를 위한 대규모 언어 모델 LLM Part 3 - 구글 제미나이(Google Gemini) API, OpenAI API와 젬마(Gemma)로 AI 어플리케이션 만들기
강의 슬라이드 공유가 가능할까요?
LLM Part 1 과 Part 2 는 강의 슬라이드를 공유해 주셨는데 Part 3 는 강의 슬라이드가 없어서 문의드립니다.
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
ch07 urllib error
mac에서의 문제인지 다른 문제인지 모르겠지만 실습 중 urllib 에러가 발생해서 다음과 같이 해결했습니다. 다른 분들에게 도움이 되었으면 좋겠네요.그리고 urllib만 import해오면 urlretrieve를 불러오지 못해서 urllib.request를 import했습니다. <에러 메시지>Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 1344, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1319, in request self._send_request(method, url, body, headers, encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1365, in sendrequest self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1314, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1074, in sendoutput self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1018, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1460, in connect self.sock = self._context.wrap_socket(self.sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1046, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1317, in do_handshake self._sslobj.do_handshake()ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/Users/adampark/Documents/personal/inflearn_chatGPT/ch08/01_dalle_exp_NewVersion.py", line 18, in <module> urllib.request.urlretrieve(image_url, "test.jpg") File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 240, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 492, in callchain result = func(*args) ^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 1392, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 1347, in do_open raise URLError(err)urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)> <해결>pip install certifiCERT_PATH=$(python -m certifi)export SSL_CERT_FILE=${CERT_PATH}export REQUESTS_CA_BUNDLE=${CERT_PATH}https://github.com/asdf-community/asdf-python/issues/106
-
미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
ch02 코드 에러 _ 신용카드 등록했음에도 'You exceeded your current quota ...' 에러가 발생합니다
안녕하세요 강사님좋은 강의 만들어주셔서 정말 감사합니다신용카드를 등록했음에도 불구하고 계속 같은 에러가 뜹니다. 지난번 어떤 분이 해당 에러 관련해서 글을 올려주셨고, 그것을 참고해 신용카드를 등록했음에도 같은 에러가 발생합니다 혹시 추가적으로 해야될 부분이 있는걸까요?