Spaces:
Runtime error
Runtime error
Commit
·
85d7b7f
1
Parent(s):
4376446
update
Browse files
app.py
CHANGED
@@ -77,6 +77,9 @@ def save_session_data(username, data):
|
|
77 |
with open(temp_file_path, 'w') as f:
|
78 |
f.write(json_data)
|
79 |
|
|
|
|
|
|
|
80 |
# Upload the file to a separate Hugging Face Space dedicated to data storage
|
81 |
api = HfApi()
|
82 |
api.upload_file(
|
@@ -252,6 +255,8 @@ def experiment(username):
|
|
252 |
|
253 |
file_a = os.path.join(dir_a, sample['file'])
|
254 |
file_b = os.path.join(dir_b, sample['file'])
|
|
|
|
|
255 |
|
256 |
# files_a = os.listdir(dir_a)
|
257 |
# files_b = os.listdir(dir_b)
|
|
|
77 |
with open(temp_file_path, 'w') as f:
|
78 |
f.write(json_data)
|
79 |
|
80 |
+
logger.info(f"Data uploaded to Hugging Face Data Space:\n{json_data}")
|
81 |
+
|
82 |
+
|
83 |
# Upload the file to a separate Hugging Face Space dedicated to data storage
|
84 |
api = HfApi()
|
85 |
api.upload_file(
|
|
|
255 |
|
256 |
file_a = os.path.join(dir_a, sample['file'])
|
257 |
file_b = os.path.join(dir_b, sample['file'])
|
258 |
+
logger.info(f"file_a:\n{file_a}")
|
259 |
+
logger.info(f"file_b:\n{file_a}")
|
260 |
|
261 |
# files_a = os.listdir(dir_a)
|
262 |
# files_b = os.listdir(dir_b)
|