Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
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 |
|