jbilcke-hf HF staff commited on
Commit
b967e55
1 Parent(s): 9d33eb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -661,7 +661,7 @@ def generate_story_and_speech(secret_token, input_text, chatbot_role):
661
  return generate_speech_from_history(history_tuples, chatbot_role, story_text)
662
 
663
  else:
664
- return {"text": "Failed to generate story (last_history is empty)", "audio": None}
665
 
666
  # Create a Gradio Interface using only the `generate_story_and_speech()` function and the 'json' output type
667
  demo = gr.Interface(
 
661
  return generate_speech_from_history(history_tuples, chatbot_role, story_text)
662
 
663
  else:
664
+ return []
665
 
666
  # Create a Gradio Interface using only the `generate_story_and_speech()` function and the 'json' output type
667
  demo = gr.Interface(