Spaces:
Runtime error
Runtime error
Update app.py
Browse files140 unmodified lines14114214314414414514614710 unmodified lines158159160161161162163164140 unmodified lines max_probability = round(max(predictions[0]) * 100, 2) result_str = f"{model_name}: {class_name} {max_probability}%" history.append(result_str) return class_name, max_probability, history[-3:-1], result_str return class_name, max_probability,None, result_str
# best_model = max(all_predictions, key=all_predictions.get) # class_name = class_folders[np.argmax(models[best_model].predict(img)[0])]10 unmodified lines
image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")result_textbox = gr.Textbox("Results", label="History Results")result_textbox = gr.Textbox("Results", label="Error Message")
iface = gr.Interface( fn=classify_selected_model,app.py+2-2