sayakpaul HF staff commited on
Commit
a673dbd
1 Parent(s): 24f94c8

fix things

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-39.pyc +0 -0
  2. 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:\n{'\n'.join(current_component_filenames)}."
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}.")