Spaces:
Runtime error
Runtime error
luulinh90s
commited on
Commit
•
9f88842
1
Parent(s):
d97b9ff
update
Browse files
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{
|
83 |
|
84 |
-
if
|
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()
|