polpoDevs commited on
Commit
4187a8d
·
verified ·
1 Parent(s): 12b8ccb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def get_answer(chatbot, input_text):
59
  conversation = Conversation(input_text)
60
  print(f"Conversation(input_text): {conversation}")
61
  output = (chatbot(conversation))[1]['content']
62
-
63
  #Add the last print statement to the output variable
64
  output += f"\nAnswered in {elapsed_time:.1f} seconds, Nr generated words: {count_words(output)}"
65
 
 
59
  conversation = Conversation(input_text)
60
  print(f"Conversation(input_text): {conversation}")
61
  output = (chatbot(conversation))[1]['content']
62
+ elapsed_time = time.time() - start_time
63
  #Add the last print statement to the output variable
64
  output += f"\nAnswered in {elapsed_time:.1f} seconds, Nr generated words: {count_words(output)}"
65