Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|