Spaces:
Runtime error
Runtime error
Update app.py
Browse files43 unmodified lines444546474849503 unmodified lines5455565758596043 unmodified linesprobability = round(max(predictions[0]) * 100, 2)result_str = f" {model_name} : {probability}% , "history.append(result_str)return class_name, probability, history3 unmodified linesimage_input = gr.Image(type='filepath', label="Input Imagehistory=[]model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")result_label = gr.Textbox(value="Exported Result")43 unmodified lines444546474849503 unmodified lines5455565758596043 unmodified linesprobability = round(max(predictions[0]) * 100, 2)result_str = f" {model_name} : {class_name} {probability}% , "history.append(result_str)return class_name, probability, history3 unmodified linesimage_input = gr.Image(type='filepath', label="Input Image")history=[]model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")result_label = gr.Textbox(value="Exported Result")
app.py+2-2