Update app.py
Browse files15 unmodified lines161718192021222324252615 unmodified lines# Load the Hugging Face pipeline (code generation)@st.cache_resourcedef load_model():# Use a Hugging Face text-generation modelmodel = pipeline("text-generation",model="EleutherAI/gpt-neo-1.3B",use_auth_token=True # Automatically uses Hugging Face Space's token)return model15 unmodified lines1617181920212223242515 unmodified lines# Load the Hugging Face pipeline (code generation)@st.cache_resourcedef load_model():# Authenticate automatically in Hugging Face Spacesmodel = pipeline("text-generation",model="EleutherAI/gpt-neo-1.3B" # The model to use)return model
app.py+2-3