Update app.py
Browse files
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 =
|
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 |
|