Arafath10 commited on
Commit
7b88d99
1 Parent(s): 8480a56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1,15 +1,13 @@
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
 
 
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 = ListTrainer(chatbot)
9
 
10
+ trainer.train("dialogs.txt")
 
 
11
 
12
 
13