Wajahat698 commited on
Commit
a99b462
·
verified ·
1 Parent(s): 615e4be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -125,7 +125,7 @@ def google_search_tool(query: str):
125
  return google_search(query)
126
 
127
  tools = [
128
- knowledge_base_tool]
129
  # Create the prompt template
130
  prompt_message = """
131
  Act as an expert copywriter who specializes in creating compelling marketing copy using AI technologies.
@@ -148,8 +148,7 @@ try:
148
  llm_with_tools = llm.bind_tools(tools)
149
  except Exception as e:
150
  logger.error(f"Error creating Langchain Agent: {e}")
151
- st.error(f"Error creating Langchain Agent: {e}")
152
- st.stop()
153
 
154
  # Define the agent pipeline to handle the conversation flow
155
  try:
 
125
  return google_search(query)
126
 
127
  tools = [
128
+ knowledge_base_tool,google_search_tool]
129
  # Create the prompt template
130
  prompt_message = """
131
  Act as an expert copywriter who specializes in creating compelling marketing copy using AI technologies.
 
148
  llm_with_tools = llm.bind_tools(tools)
149
  except Exception as e:
150
  logger.error(f"Error creating Langchain Agent: {e}")
151
+
 
152
 
153
  # Define the agent pipeline to handle the conversation flow
154
  try: