59,400원
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
텔레그램 API 사용법 익히기
getupdates 이용하는 부분에서 채팅을 입력하거나 안하거나 상관없이 계속 저런 결과가 나옵니다.토큰도 입력하였고 이전강의까지는 문제없이 잘됐는데 뭐가 문제인지 모르겟네요
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
배포 사이트 api 키 입력
배포할때 항상 api 키를 사이트에서 번거롭게 입력하지 않고자동으로 쿠키나 이런거로 자동완성되거나 키를 입력하지 않는 방법은 없을까요?
- 미해결초보자를 위한 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...
- 미해결초보자를 위한 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 ...' 에러가 발생합니다
안녕하세요 강사님좋은 강의 만들어주셔서 정말 감사합니다신용카드를 등록했음에도 불구하고 계속 같은 에러가 뜹니다. 지난번 어떤 분이 해당 에러 관련해서 글을 올려주셨고, 그것을 참고해 신용카드를 등록했음에도 같은 에러가 발생합니다 혹시 추가적으로 해야될 부분이 있는걸까요?
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
음성비서 만들기 에러 FileNotFoundError
안녕하세요 강사님 강의 재밌게 잘 보고 있습니다.음성비서 프로그램을 따라 만드는 도중 다음과 같은 에러가 발생하고 있어 도움을 요청드리고자 글 남깁니다.엣지, 크롬 두 브라우저 상에서 동일하게 위와 같은 에러가 발생 중이며, 윈도우 시스템설정에서 해당 두 브라우저에 대한 마이크 접근 권한은 허용한 상태입니다.
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
섹션0 python e teb 실행 불가 이슈 문의
python e가 최종 실행되어야하는데, 지정된 모듈을 찾을 수 없음이 뜹니다.(matplotlib 설치 완료)
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
ch08 02_instagram_exp.py 실행 시 오류 발생
코드에 USER_ID와 USER_PASSWORD는 제 인스타그램 계정으로 설정했습니다.실습하는 컴퓨터에서 해당 ID와 패스워드로 인스타그램에 로그인도 확인했구요.실습 과정과 같이 실행했더니 아래와 같이 에러가 발생합니다. 설치된 패키지 정보는 아래와 같습니다.(ch08_env) D:\inflearn_chatGPT\ch08>pip show openaiName: openaiVersion: 0.28.1Summary: Python client library for the OpenAI APIHome-page: https://github.com/openai/openai-pythonAuthor: OpenAIAuthor-email: support@openai.comLicense:Location: D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packagesRequires: aiohttp, requests, tqdmRequired-by:(ch08_env) D:\inflearn_chatGPT\ch08>pip show instagrapiName: instagrapiVersion: 2.0.1Summary: Fast and effective Instagram Private API wrapperHome-page: https://github.com/subzeroid/instagrapiAuthor: Mark SubzeroidAuthor-email: 143403577+subzeroid@users.noreply.github.comLicense: MITLocation: D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packagesRequires: pycryptodomex, pydantic, PySocks, requestsRequired-by:< 실행 및 오류 메시지 >(ch08_env) D:\inflearn_chatGPT\ch08>python 02_instagram_exp.pyTraceback (most recent call last): File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 360, in sendprivate_request response.raise_for_status() File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self)requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/login/During handling of the above exception, another exception occurred:Traceback (most recent call last): File "D:\inflearn_chatGPT\ch08\02_instagram_exp.py", line 17, in <module> cl.login(USER_ID, USER_PASSWORD) File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\auth.py", line 441, in login logged = self.private_request("accounts/login/", data, login=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 542, in private_request raise e File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 527, in private_request self._send_private_request(endpoint, **kwargs) File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 447, in sendprivate_request raise ProxyAddressIsBlocked(**last_json)instagrapi.exceptions.ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared)(ch08_env) D:\inflearn_chatGPT\ch08>
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
VS 터미널 가상환경에서 openai 0.28.1 설치 시 오류
어제 googletrans와 openai 패키지 버전 문제로 질문을 드렸었는데, openai 0.28.1을 설치하라고 답을 받아서 설치를 해봤습니다만, 아래와 같이 설치 시 에러가 나서 더 이상 진행하지 않고 질문을 남깁니다.패키지들의 버전 호환 문제 때문에 실습하는데 어려움이 정말 많네요.. 다른 분들은 어떻게들 하고 있는지.. (ch07_env) D:\inflearn_chatGPT\ch07>pip install openai==0.28.1....설치 메시지...building 'multidict._multidict' extensionerror: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for multidictFailed to build multidictERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects위와 같은 에러를 뱉고 openai는 제대로 설치되지 않습니다. (ch07_env) D:\inflearn_chatGPT\ch07>pip show openaiWARNING: Package(s) not found: openai
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
ch07 실습에 필요한 패키지 설치 시 오류가 납니다.
ch07 실습을 위해서 openai, googletrans 패키지를 설치하는데요, googletrans만 버전이 문제가 되는 게 아닙니다. openai, httpx, googletrans 3개의 버전이 서로 호환되지 않아 설치에 문제가 발생합니다.openai 설치까지는 정상적으로 됩니다.>> 이하 openai 패키지 정보(ch07_env) D:\inflearn_chatGPT\ch07>pip show openaiName: openaiVersion: 1.7.2Summary: The official Python library for the openai APIHome-page:Author:Author-email: OpenAI <support@openai.com>License:Location: D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packagesRequires: anyio, distro, httpx, pydantic, sniffio, tqdm, typing-extensionsRequired-by: >> pip install googletrans==3.1.0a0 실행 후 오류 메시지가 나타납니다.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.7.2 requires httpx<1,>=0.23.0, but you have httpx 0.13.3 which is incompatible. 실행 시 브라우저에서 오류가 발생합니다.>> (ch07_env) D:\inflearn_chatGPT\ch07>streamlit run 04_Translate_app_NewVersion.py You can now view your Streamlit app in your browser. Local URL: http://localhost:8501 Network URL: http://172.30.1.32:85012024-01-14 20:15:50.719 Uncaught app exceptionTraceback (most recent call last): File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in runscript exec(code, module.__dict__) File "D:\inflearn_chatGPT\ch07\04_Translate_app_NewVersion.py", line 5, in <module> import openai File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\__init__.py", line 8, in <module> from . import types File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\__init__.py", line 5, in <module> from .image import Image as Image File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\image.py", line 5, in <module> from .._models import BaseModel File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_models.py", line 22, in <module> from ._types import ( File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_types.py", line 26, in <module> from httpx import URL, Proxy, Timeout, Response, BaseTransport, AsyncBaseTransportImportError: cannot import name 'BaseTransport' from 'httpx' (D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\httpx\__init__.py). Did you mean: 'ASGITransport'?2024-01-14 20:16:27.219 Uncaught app exceptionTraceback (most recent call last): File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in runscript exec(code, module.__dict__) File "D:\inflearn_chatGPT\ch07\04_Translate_app_NewVersion.py", line 5, in <module> import openai File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\__init__.py", line 8, in <module> from . import types File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\__init__.py", line 5, in <module> from .image import Image as Image File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\image.py", line 5, in <module> from .._models import BaseModel File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_models.py", line 22, in <module> from ._types import ( File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_types.py", line 26, in <module> from httpx import URL, Proxy, Timeout, Response, BaseTransport, AsyncBaseTransportImportError: cannot import name 'BaseTransport' from 'httpx' (D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\httpx\__init__.py). Did you mean: 'ASGITransport'? < 브라우저 오류 메시지 >ImportError: cannot import name 'BaseTransport' from 'httpx' (D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\httpx\__init__.py)... 이하 다수의 에러 메시지
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
Instagram has blocked your IP address.
안녕하세요 강사님. 강의 정말 재밌게 수강하고 있습니다 ! 좋은 강의 만들어주셔서 감사합니다.제가 인스타 포스팅 프로그램을 따라 만드는 도중에 오류를 만났는데, 다음과 같은 오류가 있어 이유는 무엇이구, 어떻게 해결이 가능할지 여쭤보고자 글 올립니다. raise ProxyAddressIsBlocked(**last_json)instagrapi.exceptions.ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared)IP문제 때문이라고 하는데, 그냥 파이썬으로 upload하는 함수를 실행시켰을 땐 업로드가 되는데, webapp을 실행시켜 웹브라우저를 통해 업로드를 할땐 위와 같은 에러가 뜨는 이유가 궁금합니다.. 출발지 IP주소는 동일할텐데...그리고 어떻게 해결할 수 있을까요..?
- 해결됨초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
CH04 01_summerize_text_app_NewVersion.py 코드 질문
text = st.text_area("요약 할 글을 입력하세요") if st.button("요약"): prompt = f''' **Instructions** : - You are an expert assistant that summarizes text into **Korean language**. - Your task is to summarize the **text** sentences in **Korean language**. - Your summaries should include the following : - Omit duplicate content, but increase the summary weight of duplicate content. - Summarize by emphasizing concepts and arguments rather than case evidence. - Summarize in 3 lines. - Use the format of a bullet point. -text : {text} '''위 코드에서 prompt 의 f와 '''로 코멘트 처리된 부분은 어떤 식으로 작동을 하게 되는지요?prompt 가 문자열인 것 같은데 처음에 붙어 있는 f가 어떤 의미인지, 그리고 f 뒤의 문자열들은 왜 코멘트로 처리돼 있는 것인지 이해가 안됩니다.
- 해결됨초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
다운로드한 예제 소스에서 오류가 발생합니다.
[섹션1. ChatGPT API 사용법 익히기]의 네번째 "ChatGPT API 응답 구조 설명(JSON 데이터 확인하기) 학습중입니다. 이전에 질문했던 것처럼 다운받은 실습 소스와 강의 진행 내용이 맞지 않아 곤란을 겪고 있습니다.예를 들어 아래 4개의 캡쳐가 있는데, 예제 소스에 있는 대로 실행을 하면 오류가 납니다. 소스 파일은 "02_ChatGPT_API_Code.ipynb" 입니다. 오류가 나는 부분은 "02_ChatGPT_API_Code_NewVersion.ipynb" 파일에서 내용을 복사해 실행하면 정상 작동합니다. 기본 질문에서부터 오류가 발생하니 이하 따라오는 코드들에서도 연속적으로 오류가 발생합니다. < 기본 질문하기 예제 소스 - 오류 >< 기본 질문하기 수정 후 정상 실행 >< 응답에서 답변 추출하기 오류 발생 >< 응답에서 답변 추출하기 수정 후 정상 실행 >
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
CH04 Open Ai 오류 이유
버전 오류는 나와있어서 잡았는데 만료된건은 결재를 해야하는건가요? 영상에서 나온것처럼 이제 초기 무료금액은 없는건가 해서욥..ㅠ
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
비활성화 단축키 뭔지 알려주세요!
한번에 비활성화 하시던데 단축키가 뭔지 궁금합니다!
- 해결됨초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
"02_ChatGPT_API_Code.ipynb" 소스 코드가 Github에 올려져 있는 소스와 다릅니다.
ch2 듣고 있는데, "02_ChatGPT_API_Code.ipynb" 소스 코드가 Github에 올려져 있는 소스와 다르네요??VSCode 환경도 버전이 달라서인지 조금씩 다르고, 가상환경 표시도 안되는데(activate.bat 실행하면 오류는 안 나오더라구요) 어찌저찌 해보려고 하다가 저 예제에서는 짜증이 터져서 오늘은 더 못하겠습니다.환경이 달라서 커리큐럼상 50분 정도 듣는데 서너시간은 걸린 것 같습니다.(제가 뭘 빼먹었나 잘못했나 싶어서 PC 사용자도 새로 추가하고-기존 사용자명이 한글이라 문제가 있나 싶어서 영문 사용자 만들고 VSCode, Python도 새로 설치했습니다-강의를 여러번 반복해서 들어봤지만 따라하기가 너무 고되네요..
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
CH01 가상환경 설정 관련 질문드립니다.
(1번 질문)이렇게 했는데, 터미널에 (ch01_env)가 생기지 않았고 하단에 파란 줄도 생기지 않았습니다..!해결방법이 궁금합니다.연결이 되었는지 어떻게 알 수 있을까요? (2번 질문)ch_02에서는 가상환경 (ch02_env)가 생겼는데 하단에 파란줄이 보이지 않습니다. 그리고 상단에 커널도 가상환경이 보이지 않습니다.답변 부탁드립니다. 감사합니다.
- 미해결초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지
CH02_ 가상환경 활성화 안되는 이유
가상환경 활성화 코드를 입력해도 앞에 (ch02_env)가 안나오는데 이래도 괜찮은건가요?