
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
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이 에러라고 떠서 왜 그런지 모르겠습니다

