Robert Pardela
commited on
Commit
•
ea2535d
1
Parent(s):
085a76d
time v4
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def vanilla_chatbot(message, history):
|
|
16 |
conversation = chatbot(conversation)
|
17 |
to_return = conversation.generated_responses[-1]
|
18 |
|
19 |
-
print ("Answer in %5.1f secs " % (
|
20 |
return to_return
|
21 |
|
22 |
def chat_bot(message, history):
|
@@ -24,7 +24,7 @@ def chat_bot(message, history):
|
|
24 |
print("start chat")
|
25 |
to_return = chatbot(message, max_length=500)[0]['generated_text']
|
26 |
|
27 |
-
print ("Answer in %5.1f secs " % (
|
28 |
return to_return
|
29 |
|
30 |
demo_chatbot = gr.ChatInterface(chat_bot, title="Check medical chatbot", description="Enter question")
|
|
|
16 |
conversation = chatbot(conversation)
|
17 |
to_return = conversation.generated_responses[-1]
|
18 |
|
19 |
+
print ("Answer in %5.1f secs " % (time.perf_counter() - start))
|
20 |
return to_return
|
21 |
|
22 |
def chat_bot(message, history):
|
|
|
24 |
print("start chat")
|
25 |
to_return = chatbot(message, max_length=500)[0]['generated_text']
|
26 |
|
27 |
+
print ("Answer in %5.1f secs " % (time.perf_counter() - start))
|
28 |
return to_return
|
29 |
|
30 |
demo_chatbot = gr.ChatInterface(chat_bot, title="Check medical chatbot", description="Enter question")
|