import streamlit as st from transformers import pipeline st.set_page_config(page_title="pipeline 테스트") st.title("✅ transformers.pipeline import 확인") try: pipe = pipeline("text-generation", model="gpt2") output = pipe("Hello, my name is", max_new_tokens=10) st.success("pipeline import 및 실행 성공!") st.write(output[0]["generated_text"]) except Exception as e: st.error(f"실패: {e}")