sasha HF staff commited on
Commit
6195bae
1 Parent(s): 167485f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ st.text("The labels for your dataset are: "+ str(data.features['label'].names))
98
  for i in range (len(model_list)):
99
  st.text("The labels for " + str(model_list[i]) + "are: "+ str(AutoConfig.from_pretrained(model_list[i]).id2label))
100
  for j in range (len(data.features['label'].names)):
101
- globals()[f"model[i]_label[j]"] = st.selectbox("The label corresponding to " + str(data.features['label'].names[i]) + " is:", AutoConfig.from_pretrained(model_list[i]).id2label)
102
 
103
  _ = """
104
  res_accuracy1 = eval.compute(model_or_pipeline=pipe1, data=data, metric=accuracy,
98
  for i in range (len(model_list)):
99
  st.text("The labels for " + str(model_list[i]) + "are: "+ str(AutoConfig.from_pretrained(model_list[i]).id2label))
100
  for j in range (len(data.features['label'].names)):
101
+ globals()[f"model[i]_label[j]"] = st.selectbox("The label corresponding to **" + str(data.features['label'].names[i]) + "** is:", AutoConfig.from_pretrained(model_list[i]).id2label)
102
 
103
  _ = """
104
  res_accuracy1 = eval.compute(model_or_pipeline=pipe1, data=data, metric=accuracy,