Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|