Spaces:
Runtime error
Runtime error
Update app.py
Browse files43 unmodified lines444546474748495043 unmodified lines if min_probability < 70: # Adjust the threshold as needed result_str = "Can't detect this image. Please try another one." history.append(result_str) return None, None, history[-1] return None, None, history[-3:-1]
best_model = max(all_predictions, key=all_predictions.get) class_name = class_folders[np.argmax(models[best_model].predict(img)[0])]app.py+1-1