Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions chatbot/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ def main(self, args=None):

#tf.logging.set_verbosity(tf.logging.INFO) # DEBUG, INFO, WARN (default), ERROR, or FATAL

# Scope everything under a model identifier, to be able to instantiate
# multiple `Chatbot` instances from the same Python execution environment.
with tf.variable_scope(self.args.modelTag or ""):
self.mainScoped()

def mainScoped(self):
self.loadModelParams() # Update the self.modelDir and self.globStep, for now, not used when loading Model (but need to be called before _getSummaryName)

self.textData = TextData(self.args)
Expand Down