luulinh90s commited on
Commit
9f88842
1 Parent(s): d97b9ff
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,10 +79,10 @@ def save_session_data(username, data):
79
  with open(temp_file_path, 'w') as f:
80
  f.write(json_data)
81
 
82
- logger.info(f"Data uploaded to Hugging Face Data Space:\n{json_data}")
83
 
84
- if json_data['current_index'] < SAMPLE_NUM:
85
- pass
86
  else:
87
  # Upload the file to a separate Hugging Face Space dedicated to data storage
88
  api = HfApi()
 
79
  with open(temp_file_path, 'w') as f:
80
  f.write(json_data)
81
 
82
+ logger.info(f"Data uploaded to Hugging Face Data Space:\n{data}")
83
 
84
+ if data['current_index'] < SAMPLE_NUM:
85
+ pass
86
  else:
87
  # Upload the file to a separate Hugging Face Space dedicated to data storage
88
  api = HfApi()