CultriX commited on
Commit
628bce6
·
verified ·
1 Parent(s): d962660

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -2,9 +2,7 @@ import streamlit as st
2
  import pandas as pd
3
  from huggingface_hub import HfApi
4
  from huggingface_hub.utils import RepositoryNotFoundError, RevisionNotFoundError
5
- from itertools import combinations
6
  import re
7
- from functools import cache
8
  from io import StringIO
9
  from yall import create_yall
10
  import plotly.graph_objs as go
@@ -14,7 +12,7 @@ def calculate_pages(df, items_per_page):
14
  return -(-len(df) // items_per_page) # Equivalent to math.ceil(len(df) / items_per_page)
15
 
16
  @st.cache_data
17
- def cached_model_info(_api, model):
18
  try:
19
  return api.model_info(repo_id=str(model))
20
  except (RepositoryNotFoundError, RevisionNotFoundError):
 
2
  import pandas as pd
3
  from huggingface_hub import HfApi
4
  from huggingface_hub.utils import RepositoryNotFoundError, RevisionNotFoundError
 
5
  import re
 
6
  from io import StringIO
7
  from yall import create_yall
8
  import plotly.graph_objs as go
 
12
  return -(-len(df) // items_per_page) # Equivalent to math.ceil(len(df) / items_per_page)
13
 
14
  @st.cache_data
15
+ def cached_model_info(api, model):
16
  try:
17
  return api.model_info(repo_id=str(model))
18
  except (RepositoryNotFoundError, RevisionNotFoundError):