nguyenbh commited on
Commit
45fea98
·
1 Parent(s): 089499a

Handel 3 modalities input case

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -471,6 +471,8 @@ def bot_response(history, conversation_state):
471
  result = f"Error processing response: {str(e)}"
472
 
473
  # Add bot response to history
 
 
474
  history.append({"role": "assistant", "content": result})
475
 
476
  # Add to conversation state
 
471
  result = f"Error processing response: {str(e)}"
472
 
473
  # Add bot response to history
474
+ if result=="None":
475
+ result = "Current implementation does not support text + audio + image inputs in the same prompt. Please click Clear conversation button."
476
  history.append({"role": "assistant", "content": result})
477
 
478
  # Add to conversation state