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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -97,9 +97,8 @@ st.text("The labels for your dataset are: "+ str(data.features['label'].names))
97
 
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
-
101
- for i in range (len(data.features['label'].names)):
102
- globals()[f"label[i]model[i]"] = st.selectbox("The label corresponding to " + str(data.features['label'].names[i]) + " is:", AutoConfig.from_pretrained(model_list[i]).id2label)
103
 
104
  _ = """
105
  res_accuracy1 = eval.compute(model_or_pipeline=pipe1, data=data, metric=accuracy,
97
 
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,