sherab65 commited on
Commit
ba5fb94
·
verified ·
1 Parent(s): 7242fab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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