Spaces:
Runtime error
Runtime error
Print statements
Browse files
app.py
CHANGED
|
@@ -130,6 +130,8 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|
| 130 |
|
| 131 |
warnings = []
|
| 132 |
|
|
|
|
|
|
|
| 133 |
for k, v in dataset_keys.items():
|
| 134 |
if len(v) < len(dataset_with_most_splits):
|
| 135 |
warnings.append(
|
|
@@ -150,11 +152,15 @@ class RequestHandler(SimpleHTTPRequestHandler):
|
|
| 150 |
external_dataset_with_most_splits = list(external_dataset_with_most_splits)
|
| 151 |
external_dataset_with_most_splits.sort()
|
| 152 |
|
| 153 |
-
|
| 154 |
-
'internal':
|
| 155 |
'external': external_dataset_with_most_splits,
|
| 156 |
'warnings': warnings
|
| 157 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
if self.path.startswith("/retrievePipInstalls"):
|
| 160 |
errors = []
|
|
|
|
| 130 |
|
| 131 |
warnings = []
|
| 132 |
|
| 133 |
+
print("Initializing ...")
|
| 134 |
+
|
| 135 |
for k, v in dataset_keys.items():
|
| 136 |
if len(v) < len(dataset_with_most_splits):
|
| 137 |
warnings.append(
|
|
|
|
| 152 |
external_dataset_with_most_splits = list(external_dataset_with_most_splits)
|
| 153 |
external_dataset_with_most_splits.sort()
|
| 154 |
|
| 155 |
+
res = {
|
| 156 |
+
'internal': dataset_with_most_splits,
|
| 157 |
'external': external_dataset_with_most_splits,
|
| 158 |
'warnings': warnings
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
print(f"Returning: {res}")
|
| 162 |
+
|
| 163 |
+
return self.response(res)
|
| 164 |
|
| 165 |
if self.path.startswith("/retrievePipInstalls"):
|
| 166 |
errors = []
|