Skip to content

Commit

Permalink
set block=false for UI
Browse files Browse the repository at this point in the history
  • Loading branch information
privacyrespected committed Jan 19, 2022
1 parent c4b1201 commit c94dec8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def checknetwork1():
#frontend functions
def alpha_frontend():
if sys.platform in ['win32', 'win64'] and int(platform.release())>=10:
eel.start("index.html", cmdline_args=['--start-fullscreen'],port=4000)
eel.start("index.html", block=False, cmdline_args=['--start-fullscreen'],port=4000)
else:
raise EnvironmentError("Error: system is not windows 10 or above")

Expand Down
10 changes: 7 additions & 3 deletions alpha_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from chatterbot.trainers import ChatterBotCorpusTrainer
from corpus.customcorpus import * #imports the local corpus
from chatterbot import preprocessors
from modules.boot_loader import bootloader
#this line implements the custom chattebot preprocessors for extra word filter
from preprocessors import clean_words
###############
Expand Down Expand Up @@ -89,6 +90,9 @@ def trainchatbot(trainer): #works in tandem with bootnoise.startupnoise1()
except Exception as e:
notify("OHNO", e ,90)
print(e)
# 3. start frontend
# 4. time sleep 1 then start bootmessage
# 5. start the ALPHAMAIN
#boot the system
try:
bootloader()
except Exception as e:
notify("OHNO", e ,90)
print(e)

0 comments on commit c94dec8

Please sign in to comment.