Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ class BasicAgent:
|
|
| 23 |
llm = HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 24 |
chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 25 |
messages = [("system", "You are a helpful translator. Translate the user sentence to French."),
|
| 26 |
-
("human", "I love programming.")
|
| 27 |
print(chat.invoke(messages))
|
| 28 |
print("BasicAgent initialized.")
|
| 29 |
def __call__(self, question: str) -> str:
|
|
|
|
| 23 |
llm = HuggingFaceEndpoint(repo_id="Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 24 |
chat = ChatHuggingFace(llm=llm, verbose=True)
|
| 25 |
messages = [("system", "You are a helpful translator. Translate the user sentence to French."),
|
| 26 |
+
("human", "I love programming.")]
|
| 27 |
print(chat.invoke(messages))
|
| 28 |
print("BasicAgent initialized.")
|
| 29 |
def __call__(self, question: str) -> str:
|