Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, max_new_tok
|
|
| 51 |
hf_pipe = HuggingFacePipeline(pipeline=pipe)
|
| 52 |
|
| 53 |
#chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 54 |
-
chat = ChatOllama(llm=
|
| 55 |
|
| 56 |
tools = []
|
| 57 |
chat_with_tools = chat.bind_tools(tools)
|
|
|
|
| 51 |
hf_pipe = HuggingFacePipeline(pipeline=pipe)
|
| 52 |
|
| 53 |
#chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 54 |
+
chat = ChatOllama(llm=hf_pipe).bind(skip_prompt=True)
|
| 55 |
|
| 56 |
tools = []
|
| 57 |
chat_with_tools = chat.bind_tools(tools)
|