커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
AI가 처음이어도 쉽게 배우는 생성형 AI A to Z
챕터 1
북마크
이*찬
댓글
1
추천
0
조회수
6
조회수
6
답변 완료
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
---------------------------------------------------------------------------
ModelNotFoundError                        Traceback (most recent call last)
/tmp/ipython-input-4249656577.py in <cell line: 0>()
      1 import gradio as gr
      2 
----> 3 gr.load("huggingface/google/vit-base-patch16-224",).launch(share=True)


2 frames


/usr/local/lib/python3.12/dist-packages/gradio/external.py in from_model(model_name, hf_token, alias, **kwargs)
    113     response = httpx.request("GET", api_url, headers=headers)
    114     if response.status_code != 200:
--> 115         raise ModelNotFoundError(
    116             f"Could not find model: {model_name}. If it is a private or gated model, please provide your Hugging Face access token (https://huggingface.co/settings/tokens) as the argument for the `hf_token` parameter."
    117         )

ModelNotFoundError: Could not find model: google/vit-base-patch16-224. If it is a private or gated model, please provide your Hugging Face access token (https://huggingface.co/settings/tokens) as the argument for the `hf_token` parameter.

취소
 공유
취소
댓글 0
댓글 알림
나의얼굴