frncscp commited on
Commit
fcf5de5
1 Parent(s): c92d58b

Update pages/Entorno de Ejecución.py

Browse files
Files changed (1) hide show
  1. pages/Entorno de Ejecución.py +4 -3
pages/Entorno de Ejecución.py CHANGED
@@ -194,10 +194,11 @@ with vit:
194
 
195
 
196
  #y_gorrito = query(uploaded_file.read(), model_choice[0])[1]["score"]
197
-
198
  for model in model_choice:
199
- y_gorrito += query(uploaded_file.read(), model_dict[model])
200
- y_gorrito /= len(model_choice)
 
201
 
202
  #st.write("y gorrito calculado", len(model_choice))
203
  #classifier = classifier(img)
 
194
 
195
 
196
  #y_gorrito = query(uploaded_file.read(), model_choice[0])[1]["score"]
197
+ i = 0
198
  for model in model_choice:
199
+ y_gorrito += query(uploaded_file.read(), model_dict[model])
200
+ i += 1
201
+ y_gorrito /= i
202
 
203
  #st.write("y gorrito calculado", len(model_choice))
204
  #classifier = classifier(img)