Chanlefe commited on
Commit
099370e
·
verified ·
1 Parent(s): 6e37e18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -26,6 +26,10 @@ demo = gr.Interface(
26
  title="Meme Sentiment Classifier (SigLIP2)",
27
  description="Upload a meme to classify its sentiment using a SigLIP2-based model."
28
  )
 
 
 
 
29
 
30
  if __name__ == "__main__":
31
  demo.launch()
 
26
  title="Meme Sentiment Classifier (SigLIP2)",
27
  description="Upload a meme to classify its sentiment using a SigLIP2-based model."
28
  )
29
+ from transformers import AutoModelForImageClassification, AutoProcessor
30
+
31
+ model = AutoModelForImageClassification.from_pretrained("model")
32
+ processor = AutoProcessor.from_pretrained("model")
33
 
34
  if __name__ == "__main__":
35
  demo.launch()