not-lain commited on
Commit
173427c
1 Parent(s): c4c3c57

small fixes

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -259,7 +259,8 @@ def process_summary_with_openai(summary):
259
 
260
  def process_and_query(input_language=None,audio_input=None,image_input=None,text_input=None):
261
  try:
262
- if text is not None :
 
263
  # augment the prompt before feeding it to vectara
264
  text = "the user asks the following to his health adviser " + text
265
  # process audio
 
259
 
260
  def process_and_query(input_language=None,audio_input=None,image_input=None,text_input=None):
261
  try:
262
+ text = ""
263
+ if text_input is not None :
264
  # augment the prompt before feeding it to vectara
265
  text = "the user asks the following to his health adviser " + text
266
  # process audio