Spaces:
Runtime error
Runtime error
Update app.py
Browse files42 unmodified lines434445464647484949505152535354555657585455565742 unmodified lines
image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")
Images= gr.Image(shape=(200, 200)),examples=["Sites/Ajloun.png", "Sites/Jeresh.png", "Sites/Umm Qais.png", "Sites/Petra.png", "Sites/Wadi Rum.png", "Sites/Roman Amphitheater.png" ] )iface = gr.Interface( fn=classify_selected_model, inputs=[image_input, model_dropdown], inputs=[image_input, model_dropdown ,Images], outputs=[ gr.Label(value="Archaeological Site"), gr.Label(value="Probability")], gr.Image(shape=(200, 200)), "Sites/Ajloun.png", gr.Image(shape=(200, 200)), "Sites/Jeresh.png", gr.Image(shape=(200, 200)), "Sites/Umm Qais.png", gr.Image(shape=(200, 200)), "Sites/Petra.png", gr.Image(shape=(200, 200)), "Sites/Wadi Rum.png", gr.Image(shape=(200, 200)), "Sites/Roman Amphitheater.png", live=True, title="Image Classification for Archaeological Sites Interface", app.py+4-8