Spaces:
Runtime error
Runtime error
Update app.py
Browse files39 unmodified lines4041424344454639 unmodified linesreturn f"Predicted class using {model_choice}: {class_name}"# Example usageimg = tf.random.normal(shape=(224, 224, 3)) # Replace with your image datamodel_choice = "facebook/vit-base-patch16-224-in21k-finetuned-image-coco" # Replace with your desired modelresult = classify_image(img, model_choice)print(result)39 unmodified lines4041424344454639 unmodified linesreturn f"Predicted class using {model_choice}: {class_name}"# Example usageimg = tf.random.normal(shape=(150, 150, 3)) # Replace with your image datamodel_choice = "facebook/vit-base-patch16-224-in21k-finetuned-image-coco" # Replace with your desired modelresult = classify_image(img, model_choice)print(result)
app.py+1-1