커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
output 에러
AI가 처음이어도 쉽게 배우는 생성형 AI A to Z v0
2주차
북마크
조*연
댓글
3
추천
0
조회수
6
조회수
6
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



from transformers import pipeline

import gradio as gr


classifier = pipeline("sentiment-analysis")


def sentiment_analysis(text):

    result = classifier(text)

    return resuit[0['label']]


# Gradio interface

interface = gr.Interface(


    fn = sentiment_analysis,

    inputs=gr.Textbox(),

    outputs=gr.Textbox(),

    examples=["I love this", "I hate this"]

)


interface.launch(share=True)




output이 에러라고 떠서 왜 그런지 모르겠습니다

스파르타 즉문즉답







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