Spaces:
Runtime error
Runtime error
Update app.py
Browse files11 unmodified lines1213141516171832 unmodified lines51525354555657585911 unmodified linesfrom langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace, HuggingFaceEmbeddingsfrom langchain_core.messages import HumanMessage# (Keep Constants as is)# --- Constants ---32 unmodified lines# 1. Instantiate Agent ( modify this part to create your agent)try:load_dotenv()HF_KEY = os.getenv("HF_TOKEN")llm = ChatHuggingFace(llm=HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct",11 unmodified lines1213141516171832 unmodified lines5152535455565711 unmodified linesfrom langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace, HuggingFaceEmbeddingsfrom langchain_core.messages import HumanMessageload_dotenv()# (Keep Constants as is)# --- Constants ---32 unmodified lines# 1. Instantiate Agent ( modify this part to create your agent)try:llm = ChatHuggingFace(llm=HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct",
app.py+2-4