Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -145,6 +145,9 @@ def handle_input(image, text, session_id):
|
|
| 145 |
response=f"Your request has been forwarded to the {category} department"
|
| 146 |
else:
|
| 147 |
# Handle text input
|
|
|
|
|
|
|
|
|
|
| 148 |
response = chain.invoke(
|
| 149 |
[HumanMessage(content=text)],
|
| 150 |
config={"configurable": {"session_id": session_id}},
|
|
|
|
| 145 |
response=f"Your request has been forwarded to the {category} department"
|
| 146 |
else:
|
| 147 |
# Handle text input
|
| 148 |
+
if text=='':
|
| 149 |
+
response="Please enter your query"
|
| 150 |
+
return response
|
| 151 |
response = chain.invoke(
|
| 152 |
[HumanMessage(content=text)],
|
| 153 |
config={"configurable": {"session_id": session_id}},
|