sasha HF Staff commited on
Commit
9850334
·
1 Parent(s): 91f89cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ 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,
 
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,