Robert Pardela commited on
Commit
eccb9b4
·
1 Parent(s): fce840a
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -13,14 +13,9 @@ def vanilla_chatbot(message, history):
13
 
14
  return conversation.generated_responses[-1]
15
 
16
- def summarizer_bot(message, history):
17
- return chatbot(message, min_length=5, max_length=500)[0]['summary_text']
18
 
19
  demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Check medical chatbot", description="Enter question")
20
 
21
- # def responseFun(message, history):
22
- # return history[len(history) - 1]
23
-
24
- # demo_chatbot = gr.ChatInterface(responseFun, title="Test medical summarization chatbot", description="Enter text to summarize.")
25
-
26
  demo_chatbot.launch()
 
13
 
14
  return conversation.generated_responses[-1]
15
 
16
+ # def summarizer_bot(message, history):
17
+ # return chatbot(message, min_length=5, max_length=500)[0]['summary_text']
18
 
19
  demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Check medical chatbot", description="Enter question")
20
 
 
 
 
 
 
21
  demo_chatbot.launch()