Akjava commited on
Commit
abb1cf0
·
verified ·
1 Parent(s): faac8da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ with gr.Blocks(title="LLM with TTS") as demo:
94
  gr.Markdown("LLM and TTS models will change without notice.")
95
  js = """
96
  function(chatbot){
97
- console.log(chatbot[-1])
98
  }
99
  """
100
  chatbot = gr.Chatbot(type="messages")
 
94
  gr.Markdown("LLM and TTS models will change without notice.")
95
  js = """
96
  function(chatbot){
97
+ console.log(chatbot[chatbot.length -1])
98
  }
99
  """
100
  chatbot = gr.Chatbot(type="messages")