Spaces:
Runtime error
Runtime error
Update app.py
Browse files60 unmodified lines6162636465666768697071727360 unmodified lines# Return the predicted class name as a stringreturn f"Predicted class using {model_choice}: {class_name}"# Create a Gradio interface with a dropdown for model selectioniface = gr.Interface(fn=classify_image,inputs=["image", gr.Dropdown(["ResNet", "EfficientNet","VGGNet","InceptionV3"], label="Select Model")],outputs="text",live=True)# Launch the Gradio interfaceiface.launch(debug=True,share=True)60 unmodified lines6162636465666768697071727374757660 unmodified lines# Return the predicted class name as a stringreturn f"Predicted class using {model_choice}: {class_name}"image_input = gr.Image()# Create a Gradio interface with a dropdown for model selectioniface = gr.Interface(fn=classify_image,inputs=[image_input, gr.Dropdown(["ResNet", "EfficientNet","VGGNet","InceptionV3"], label="Select Model")],outputs="text",live=True).launch(debug=True)
app.py+6-3