phenomenon1981 commited on
Commit
bfee544
1 Parent(s): 122846c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,7 +19,8 @@ def restart_and_stop_periodically():
19
  while True:
20
  time.sleep(30) # 5 minutes
21
  queue.queue.clear()
22
- proc1.stop(timeout=10)
 
23
  text_gen.stop()
24
  os.execl(sys.executable, sys.executable, *sys.argv)
25
 
 
19
  while True:
20
  time.sleep(30) # 5 minutes
21
  queue.queue.clear()
22
+ server = proc1.get_server()
23
+ server.kill()
24
  text_gen.stop()
25
  os.execl(sys.executable, sys.executable, *sys.argv)
26