Spaces:
Runtime error
Runtime error
Update app.py
Browse files41 unmodified lines4243444546474849505152535455565758596061626341 unmodified linesreturn {"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)# Launch the Gradio interface and deploy on Gradio's public sharing serviceiface.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)41 unmodified lines4243444546474849505152535455565758596061626341 unmodified linesreturn {"error": str(e)}# Create Gradio interface# 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 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)
app.py+16-16