Chanlefe commited on
Commit
3711151
·
verified ·
1 Parent(s): 131383f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -37,11 +37,15 @@ def classify_meme(image: Image.Image):
37
  demo = gr.Interface(
38
  fn=classify_meme,
39
  inputs=gr.Image(type="pil"),
40
- outputs=gr.Label(num_top_classes=2),
41
- title="Meme Sentiment Classifier (SigLIP2)",
42
- description="Upload a meme to classify its sentiment using a SigLIP2-based model."
 
 
 
43
  )
44
 
 
45
  if __name__ == "__main__":
46
  demo.launch(share = True)
47
 
 
37
  demo = gr.Interface(
38
  fn=classify_meme,
39
  inputs=gr.Image(type="pil"),
40
+ outputs=[
41
+ gr.Label(num_top_classes=2, label="Predictions"),
42
+ gr.Textbox(label="Extracted Text")
43
+ ],
44
+ title="Meme Classifier with OCR",
45
+ description="Upload a meme to classify its sentiment and extract text using OCR."
46
  )
47
 
48
+
49
  if __name__ == "__main__":
50
  demo.launch(share = True)
51