dlaima commited on
Commit
c528499
·
verified ·
1 Parent(s): dc2aa07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -56,16 +56,14 @@ class cbfs:
56
  #return result.get('output_text', "No response generated.")
57
 
58
  def convchain(self, query):
59
- if not query:
60
- return "Please enter a query."
61
- try:
62
- result = self.chain.invoke({"input": query})
63
- print("Agent Result:", result) # Debugging line
64
- return result.get('output_text', "No response generated.")
65
- except Exception as e:
66
- return f"Error: {str(e)}"
67
-
68
-
69
 
70
  # Create an instance of the agent
71
  cb = cbfs(tools)
 
56
  #return result.get('output_text', "No response generated.")
57
 
58
  def convchain(self, query):
59
+ if not query:
60
+ return "Please enter a query."
61
+ try:
62
+ result = self.chain.invoke({"input": query})
63
+ print("Agent Result:", result) # Debugging line
64
+ return result.get('output_text', "No response generated.")
65
+ except Exception as e:
66
+ return f"Error: {str(e)}"
 
 
67
 
68
  # Create an instance of the agent
69
  cb = cbfs(tools)