Spaces:
Sleeping
Sleeping
Raphaël Bournhonesque commited on
Commit ·
3dc0018
1
Parent(s): 4ebffee
improve app description
Browse files6 unmodified lines78910111256 unmodified lines6970717273746 unmodified linesimport streamlit as sthttp_session = requests.Session()@enum.unique56 unmodified lines"Product barcode", default_barcode)threshold = st.sidebar.number_input("Threshold", format="%f", value=0.5) or Nonemodel_names = st.multiselect("Name of the model",[x.name for x in NeuralCategoryClassifierModel],6 unmodified lines78910111213141516171819202156 unmodified lines78798081828384856 unmodified linesimport streamlit as stMODEL_DESCRIPTION = """**keras_2_0**: Current production model\n**keras_sota_3_0**: Best model (SOTA), trained on 300 epochs with product name, ingredients, OCR-extracted ingredients and nutriments as input\n**keras_ingredient_ocr_3_0**: same as `keras_sota_3_0`, but trained on less epochs\n**keras_baseline_3_0**: model trained with product name, ingredients and nutriments as input\n**keras_original_3_0**: same inputs as **keras_2_0** (product name + ingredients), but retrained\n**keras_product_name_only_3_0**: model with only product name as input"""http_session = requests.Session()@enum.unique56 unmodified lines"Product barcode", default_barcode)threshold = st.sidebar.number_input("Threshold", format="%f", value=0.5) or Nonest.sidebar.write("---\n# Model description\n" + MODEL_DESCRIPTION)model_names = st.multiselect("Name of the model",[x.name for x in NeuralCategoryClassifierModel],
app.py+11