Arafath10 commited on
Commit
5b6bdce
·
1 Parent(s): 9ab5514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,9 +1,17 @@
1
  import gradio as gr
2
  from chatterbot import ChatBot
3
  from chatterbot.trainers import ListTrainer
 
4
 
5
  chatbot = ChatBot("Chatpot")
6
 
 
 
 
 
 
 
 
7
 
8
  def greet(name):
9
  text = chatbot.get_response(name)
 
1
  import gradio as gr
2
  from chatterbot import ChatBot
3
  from chatterbot.trainers import ListTrainer
4
+ from chatterbot.trainers import ChatterBotCorpusTrainer
5
 
6
  chatbot = ChatBot("Chatpot")
7
 
8
+ trainer = ChatterBotCorpusTrainer(chatbot)
9
+
10
+ trainer.train(
11
+ "chatterbot.corpus.english"
12
+ )
13
+
14
+
15
 
16
  def greet(name):
17
  text = chatbot.get_response(name)