Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from PIL import Image
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
# Prediction function
|
| 5 |
def predict(input_img):
|
| 6 |
# Get the predictions from the pipeline
|
|
|
|
| 1 |
+
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
from PIL import Image
|
| 4 |
|
| 5 |
+
# Initialize the image classification pipeline with the specific model
|
| 6 |
+
pipe = pipeline("image-classification", model="prithivMLmods/Age-Classification-SigLIP2")
|
| 7 |
+
|
| 8 |
# Prediction function
|
| 9 |
def predict(input_img):
|
| 10 |
# Get the predictions from the pipeline
|