Spaces:
Runtime error
Runtime error
Update app.py
Browse files41 unmodified lines424344454647484950454647484950515253525354555657585960616263565758596061626341 unmodified lines return {"error": str(e)}
# Create Gradio interfaceiface = gr.Interface( fn=classify_selected_model, inputs=["image", gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")], outputs="text", live=True)# iface = gr.Interface(# fn=classify_selected_model,# inputs=["image", gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")],# outputs="text",# live=True# )
# Launch the Gradio interface and deploy on Gradio's public sharing serviceiface.launch(share=True)# # Launch the Gradio interface and deploy on Gradio's public sharing service# iface.launch(share=True)
# image_input = gr.Image(type='filepath', label="Input Image")# model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")# gr.Interface(# fn=classify_selected_model,# inputs=[image_input, model_dropdown],# outputs="json",# live=True# ).launch(debug=True)image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")gr.Interface( fn=classify_selected_model, inputs=[image_input, model_dropdown], outputs="json", live=True).launch(debug=True)app.py+16-16