Spaces:
Runtime error
Runtime error
Update app.py
Browse files38 unmodified lines3940414242434445464748495051526 unmodified lines5960616263646538 unmodified lines
except Exception as e: return str(e), None
def export_results(class_name, probability, model_name): result_str = f"Predicted Class: {class_name}\nProbability: {probability}%\nModel: {model_name}" return result_str
image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")export_button = gr.Button(fn=export_results, label="Export Results")
iface = gr.Interface( fn=classify_selected_model,6 unmodified lines ["Sites/Jeresh.png", "VGGNet"], ["Sites/Umm Qais.png", "EfficientNet"], ["Sites/Petra.png", "InceptionV3"]], widgets=[export_button], live=True, title="Image Classification for Archaeological Sites Interface", app.py+6-1