Margerie commited on
Commit
f5fe801
·
1 Parent(s): d995639
1_📝_form.py CHANGED
@@ -20,8 +20,9 @@ def get_cached_data():
20
 
21
  license_df = pd.read_html("https://huggingface.co/docs/hub/repositories-licenses")[0]
22
  print("license_df.keys()",license_df.keys())
 
23
  license_map = pd.Series(
24
- license_df["License identifier (to use in model card)"].values, index=license_df.Fullname
25
  ).to_dict()
26
 
27
  available_metrics = [x['id'] for x in requests.get('https://huggingface.co/api/metrics').json()]
@@ -99,7 +100,8 @@ def save_uploadedfile(uploadedfile):
99
 
100
 
101
  def main_page():
102
-
 
103
 
104
  if "model_name" not in st.session_state:
105
  # Initialize session state.
 
20
 
21
  license_df = pd.read_html("https://huggingface.co/docs/hub/repositories-licenses")[0]
22
  print("license_df.keys()",license_df.keys())
23
+ print(license_df["License identifier (to use in repo card)"])
24
  license_map = pd.Series(
25
+ license_df["License identifier (to use in repo card)"].values, index=license_df.Fullname
26
  ).to_dict()
27
 
28
  available_metrics = [x['id'] for x in requests.get('https://huggingface.co/api/metrics').json()]
 
100
 
101
 
102
  def main_page():
103
+ print("HELLO")
104
+ st.cache_data.clear()
105
 
106
  if "model_name" not in st.session_state:
107
  # Initialize session state.
__pycache__/persist.cpython-39.pyc CHANGED
Binary files a/__pycache__/persist.cpython-39.pyc and b/__pycache__/persist.cpython-39.pyc differ