samsl commited on
Commit
8e4970b
·
1 Parent(s): df3ce56

add environment variables for cuda

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -30,6 +30,9 @@ from rocketshp.network import (
30
  calculate_centrality,
31
  )
32
 
 
 
 
33
 
34
  def plot_predictions(
35
  rmsf: np.ndarray,
 
30
  calculate_centrality,
31
  )
32
 
33
+ os.environ["OMP_NUM_THREADS"] = "4"
34
+ os.environ["CUDA_VISIBLE_DEVICES"] = "0"
35
+
36
 
37
  def plot_predictions(
38
  rmsf: np.ndarray,