sasha HF staff commited on
Commit
91f89cf
1 Parent(s): 9f1060c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -95,11 +95,12 @@ st.markdown("### Help us pick the right labels for your models")
95
 
96
  st.text("The labels for your dataset are: "+ str(data.features['label'].names))
97
 
98
-
99
  for i in range (len(model_list)):
100
  st.text("The labels for " + str(model_list[i]) + "are: "+ str(AutoConfig.from_pretrained(model_list[i]).id2label))
101
 
102
-
 
 
103
  _ = """
104
  res_accuracy1 = eval.compute(model_or_pipeline=pipe1, data=data, metric=accuracy,
105
  label_mapping={"NEGATIVE": 0, "POSITIVE": 1},)
 
95
 
96
  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,
106
  label_mapping={"NEGATIVE": 0, "POSITIVE": 1},)