Spaces:
Runtime error
Key Error when trying to run the space
Hi team, I see the following Key Error when trying to run the space
KeyError: 'model-index'
Traceback:
File "/home/user/.local/lib/python3.10/site-packages/streamlit/scriptrunner/script_runner.py", line 554, in _run_script
exec(code, module.dict)
File "/home/user/app/app.py", line 129, in
dataframe = get_data_wrapper()
File "/home/user/.local/lib/python3.10/site-packages/streamlit/legacy_caching/caching.py", line 573, in wrapped_func
return get_or_create_cached_value()
File "/home/user/.local/lib/python3.10/site-packages/streamlit/legacy_caching/caching.py", line 557, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/user/app/app.py", line 124, in get_data_wrapper
get_data()
File "/home/user/app/app.py", line 96, in get_data
for row in parse_metrics_rows(meta):
File "/home/user/app/app.py", line 37, in parse_metrics_rows
if not isinstance(meta["model-index"], list) or len(meta["model-index"]) == 0 or "results" not in meta["model-index"][0]: