Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|