Spaces:
Sleeping
Sleeping
Ajaykanth Maddi commited on
Commit ·
f153352
1
Parent(s): 8f02c97
Code Changes - Upload Results
Browse files
utils.py
CHANGED
|
@@ -253,7 +253,7 @@ def extract_metric_lists(data, metric_key='relevance_score'):
|
|
| 253 |
|
| 254 |
return y_true_list, y_pred_list
|
| 255 |
|
| 256 |
-
def upload_file(
|
| 257 |
"""Upload a file to Hugging Face hub from the specified folder."""
|
| 258 |
try:
|
| 259 |
file_path = os.path.join(folder_path, filename)
|
|
|
|
| 253 |
|
| 254 |
return y_true_list, y_pred_list
|
| 255 |
|
| 256 |
+
def upload_file(filename: str, folder_path: str) -> str:
|
| 257 |
"""Upload a file to Hugging Face hub from the specified folder."""
|
| 258 |
try:
|
| 259 |
file_path = os.path.join(folder_path, filename)
|