
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
import gradio as gr
gr.load("huggingface/google/vit-base-patch16-224",).launch(share=True)
작성한 코드 및 에러 메세지
오류 발생 시, 작성한 코드 전체와 에러 메시Fetching model from: https://huggingface.co/google/vit-base-patch16-224 IMPORTANT: You are using gradio version 4.0.2, however version 4.29.0 is available, please upgrade. -------- Colab notebook detected. To show errors in colab notebook, set debug=True in launch() Running on public URL: https://36e5376c483f6fe95a.gradio.live This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run `gradio deploy` from Terminal to deploy to Spaces (https://huggingface.co/spaces) --------------------------------------------------------------------------- TimeoutError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length) 536 try: --> 537 response = conn.getresponse() 538 except (BaseSSLError, OSError) as e:
21 frames
TimeoutError: The read operation timed out
The above exception was the direct cause of the following exception:
ReadTimeoutError Traceback (most recent call last)
ReadTimeoutError: HTTPSConnectionPool(host='36e5376c483f6fe95a.gradio.live', port=443): Read timed out. (read timeout=3)
During handling of the above exception, another exception occurred:
ReadTimeout Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
711 raise SSLError(e, request=request)
712 elif isinstance(e, ReadTimeoutError):
--> 713 raise ReadTimeout(e, request=request)
714 elif isinstance(e, _InvalidHeader):
715 raise InvalidHeader(e, request=request)
ReadTimeout: HTTPSConnectionPool(host='36e5376c483f6fe95a.gradio.live', port=443): Read timed out. (read timeout=3)지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
