Arjs commited on
Commit
c37f5b9
·
verified ·
1 Parent(s): e09f2e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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}},