Robert Pardela commited on
Commit
ea2535d
1 Parent(s): 085a76d
Files changed (1) hide show
  1. app.py +2 -2
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 " % (start - time.perf_counter()))
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 " % (start - time.perf_counter()))
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")