Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,8 @@ class BasicAgent:
|
|
| 23 |
def __init__(self):
|
| 24 |
llm = HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 25 |
chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 26 |
-
messages = [("system", "You are a helpful
|
| 27 |
-
("human", "
|
| 28 |
print(chat.invoke(messages))
|
| 29 |
print("BasicAgent initialized.")
|
| 30 |
def __call__(self, question: str) -> str:
|
|
|
|
| 23 |
def __init__(self):
|
| 24 |
llm = HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 25 |
chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 26 |
+
messages = [("system", "You are a helpful assistant."),
|
| 27 |
+
("human", "Hey how are you?")]
|
| 28 |
print(chat.invoke(messages))
|
| 29 |
print("BasicAgent initialized.")
|
| 30 |
def __call__(self, question: str) -> str:
|