PyTorch 웹사이트에 가서 환경에 맞는 설정을 해준뒤 설치 명령어 복붙

conda install pytorch torchvision torchaudio cpuonly -c pytorch
설치가 완료된 모습

주 단위로 모델이 약 만 개씩 추가되고 있는 상황이고 앞으로 더욱 고도화될 것이라고 함.
# STEP 1
from transformers import pipeline
# STEP 2
classifier = pipeline("sentiment-analysis", model="stevhliu/my_awesome_model") # stevhliu가 만든 모델이다. 깃허브상 닉네임과 같은 개념. 스페이스 라고 부름. 만약 모델 제작자 정보가 누락되면 에러 발생함.
# STEP 3
# text = "This was a masterpiece. Not completely faithful to the books, but enthralling from beginning to end. Might be my favorite of the three."
text = "샤오미의 폴더블 폰의 점유율이 삼성전자 보다 높아졌다."
# STEP 4
result = classifier(text)
# STEP 5
print(result)