fix things
Browse files- __pycache__/app.cpython-39.pyc +0 -0
- app.py +2 -1
__pycache__/app.cpython-39.pyc
ADDED
|
Binary file (5.1 kB). View file
|
|
|
app.py
CHANGED
|
@@ -72,9 +72,10 @@ def get_component_wise_memory(pipeline_id, token=None, variant=None, revision=No
|
|
| 72 |
)
|
| 73 |
variant_present_with_extension = any(condition(filename) for filename in current_component_filenames)
|
| 74 |
if not variant_present_with_extension:
|
|
|
|
| 75 |
raise ValueError(
|
| 76 |
f"Requested extension ({extension}) and variant ({variant}) not present for {current_component}."
|
| 77 |
-
f" Available files for this component
|
| 78 |
)
|
| 79 |
else:
|
| 80 |
raise ValueError(f"Problem with {current_component}.")
|
|
|
|
| 72 |
)
|
| 73 |
variant_present_with_extension = any(condition(filename) for filename in current_component_filenames)
|
| 74 |
if not variant_present_with_extension:
|
| 75 |
+
formatted_filenames = ", ".join(current_component_filenames)
|
| 76 |
raise ValueError(
|
| 77 |
f"Requested extension ({extension}) and variant ({variant}) not present for {current_component}."
|
| 78 |
+
f" Available files for this component: {formatted_filenames}."
|
| 79 |
)
|
| 80 |
else:
|
| 81 |
raise ValueError(f"Problem with {current_component}.")
|