ai-engineering-hub icon indicating copy to clipboard operation
ai-engineering-hub copied to clipboard

Issue 1: Redundant Definition of `load_llm` in `app_deep_seek.py`

Open PrinceSajjadHussain opened this issue 6 months ago • 2 comments

The load_llm function is defined twice in app_deep_seek.py. This is redundant and can lead to confusion or unexpected behavior if the definitions are different. The second definition of the function is in the end of the file and prevents the code in the beginning to work.

@st.cache_resource
def load_llm():
    llm = LLM(
        model="ollama/deepseek-r1:7b",
        base_url="http://localhost:11434"
    )
    return llm

PrinceSajjadHussain avatar Jun 22 '25 18:06 PrinceSajjadHussain

test

yongchixiao avatar Jun 22 '25 19:06 yongchixiao

did you fixed it @yongchixiao

PrinceSajjadHussain avatar Jun 23 '25 10:06 PrinceSajjadHussain