Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__/
32 changes: 0 additions & 32 deletions .idea/Tensorflow_Chatbot.iml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

875 changes: 0 additions & 875 deletions .idea/workspace.xml

This file was deleted.

File renamed without changes.
Binary file removed Bot/__pycache__/ChatBot.cpython-36.pyc
Binary file not shown.
Binary file removed Bot/__pycache__/path.cpython-36.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions Bot/checkpoint
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
model_checkpoint_path: "C:/Users/Nimesha Buddhika/Documents/PycharmProject/Tensorflow_Chatbot/Bot/model.tflearn"
all_model_checkpoint_paths: "C:/Users/Nimesha Buddhika/Documents/PycharmProject/Tensorflow_Chatbot/Bot/model.tflearn"
model_checkpoint_path: "/home/faizan/dev/ai/rf/Tensorflow-Chatbot/Bot/model.tflearn"
all_model_checkpoint_paths: "/home/faizan/dev/ai/rf/Tensorflow-Chatbot/Bot/model.tflearn"
Binary file modified Bot/model.tflearn.data-00000-of-00001
Binary file not shown.
Binary file modified Bot/model.tflearn.index
Binary file not shown.
Binary file modified Bot/model.tflearn.meta
Binary file not shown.
13 changes: 11 additions & 2 deletions Bot/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@

import numpy as np
import tensorflow as tf

# for gpu
from tensorflow.compat.v1 import ConfigProto, InteractiveSession

config = ConfigProto() # for gpu
config.gpu_options.allow_growth = True # for gpu
session = InteractiveSession(config=config)

import tflearn
import random
import pickle

from Bot import path
import path
import json

stemmer = LancasterStemmer()
Expand Down Expand Up @@ -57,7 +65,8 @@
train_x = list(training[:, 0])
train_y = list(training[:, 1])

tf.reset_default_graph()
tf.compat.v1.reset_default_graph()

net = tflearn.input_data(shape=[None, len(train_x[0])])
net = tflearn.fully_connected(net, 8)
net = tflearn.fully_connected(net, 8)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified Bot/trained_data
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion CLI/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
text = input("Q : ")
if text == 'exit':
break
print("A : "+ob.response(text))
print("A : " + ob.response(text))

print("Ended successfully")
Binary file not shown.
Binary file not shown.
Binary file removed Tensorflow_Chatbot/Api/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file removed Tensorflow_Chatbot/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file removed Tensorflow_Chatbot/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file removed Tensorflow_Chatbot/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file removed Tensorflow_Chatbot/__pycache__/wsgi.cpython-36.pyc
Binary file not shown.
11 changes: 0 additions & 11 deletions UI/ChatUI/.idea/ChatBot.iml

This file was deleted.

7 changes: 0 additions & 7 deletions UI/ChatUI/.idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions UI/ChatUI/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions UI/ChatUI/.idea/modules.xml

This file was deleted.

Loading