inoki-giskard commited on
Commit
f5dcb41
1 Parent(s): 2408798

Start detection in another thread

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def detect_gpu():
44
  except ImportError:
45
  logger.warn("No Tensorflow installed")
46
 
47
- detect_gpu()
48
 
49
  previous_url = ""
50
  ml_worker = None
 
44
  except ImportError:
45
  logger.warn("No Tensorflow installed")
46
 
47
+ threading.Thread(target=detect_gpu).start()
48
 
49
  previous_url = ""
50
  ml_worker = None