sayakpaul HF staff commited on
Commit
4511c84
1 Parent(s): 59db7fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def format_size(num: int) -> str:
18
  def format_output(memory_mapping):
19
  markdown_str = ""
20
  if memory_mapping:
21
- for component, memory in memory_mapping:
22
  markdown_str += f"* {component}: {format_size(memory)}\n"
23
  return markdown_str
24
 
 
18
  def format_output(memory_mapping):
19
  markdown_str = ""
20
  if memory_mapping:
21
+ for component, memory in memory_mapping.items():
22
  markdown_str += f"* {component}: {format_size(memory)}\n"
23
  return markdown_str
24