MarcoParola commited on
Commit
15dceff
·
1 Parent(s): 0849f9e

fix error in utils.py undeclared variable

Browse files
Files changed (1) hide show
  1. src/utils.py +1 -1
src/utils.py CHANGED
@@ -8,7 +8,7 @@ config = yaml.safe_load(open("./config/config.yaml"))
8
 
9
  # Function to load global variable from CSV
10
  def load_global_variable():
11
- global global_counter
12
  if os.path.exists('global_variable.csv'):
13
  df = pd.read_csv('global_variable.csv')
14
  global_counter = df['value'][0]
 
8
 
9
  # Function to load global variable from CSV
10
  def load_global_variable():
11
+ global_counter = 0
12
  if os.path.exists('global_variable.csv'):
13
  df = pd.read_csv('global_variable.csv')
14
  global_counter = df['value'][0]