Pijush2023 commited on
Commit
8ac223f
·
verified ·
1 Parent(s): 059e3e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -186,12 +186,13 @@ def get_response(input_text):
186
  # Adjust input to match expected structure
187
  return chain_neo4j.invoke({
188
  "input": input_text,
189
- "chat_history": [],
190
- "agent_scratchpad": ""
191
  })
192
  except Exception as e:
193
  return f"Error: {str(e)}"
194
 
 
195
  # Define the function to clear input and output
196
  def clear_fields():
197
  return [],"",None
 
186
  # Adjust input to match expected structure
187
  return chain_neo4j.invoke({
188
  "input": input_text,
189
+ "chat_history": [], # Replace with actual chat history if available
190
+ "agent_scratchpad": "" # Replace with actual content if needed
191
  })
192
  except Exception as e:
193
  return f"Error: {str(e)}"
194
 
195
+
196
  # Define the function to clear input and output
197
  def clear_fields():
198
  return [],"",None