Spaces:
Runtime error
Runtime error
Update app.py
Browse files31 unmodified lines3233343536373831 unmodified linesst.session_state.response_ready = False# ✅ Initialize Hugging Face Model (Explicitly Set to CPU/GPU)def get_llm_hf_inference(model_id="meta-llama/Llama-2-7b-chat-hf", max_new_tokens=800, temperature=0.3):return HuggingFaceEndpoint(repo_id=model_id,max_new_tokens=max_new_tokens,31 unmodified lines3233343536373831 unmodified linesst.session_state.response_ready = False# ✅ Initialize Hugging Face Model (Explicitly Set to CPU/GPU)def get_llm_hf_inference(model_id="meta-llama/Llama-2-7b-chat-hf", max_new_tokens=800, temperature=0.2):return HuggingFaceEndpoint(repo_id=model_id,max_new_tokens=max_new_tokens,
app.py+1-1