itskavya commited on
Commit
c381ebe
·
verified ·
1 Parent(s): 5439472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 translator. Translate the user sentence to French."),
27
- ("human", "I love programming.")]
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: