Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -67,8 +67,8 @@ def upload_and_analyze(image):
|
|
67 |
# Updated Gradio interface for Hugging Face deployment
|
68 |
iface = gr.Interface(
|
69 |
fn=upload_and_analyze,
|
70 |
-
inputs=gr.Image(type="
|
71 |
-
outputs=gr.Textbox(label="Marketing Persona and Ad Analysis"),
|
72 |
title="Advertisement Persona and Scoring Analyzer",
|
73 |
description="Upload an advertisement image, and the app will generate marketing personas and evaluate the ad copy based on Relevance, Emotional Engagement, Brand Consistency, Creativity, and Persuasiveness."
|
74 |
)
|
|
|
67 |
# Updated Gradio interface for Hugging Face deployment
|
68 |
iface = gr.Interface(
|
69 |
fn=upload_and_analyze,
|
70 |
+
inputs=gr.Image(type="pil", label="Upload Advertisement Image"), # Use type="pil" for the image input
|
71 |
+
outputs=gr.Textbox(label="Marketing Persona and Ad Analysis"),
|
72 |
title="Advertisement Persona and Scoring Analyzer",
|
73 |
description="Upload an advertisement image, and the app will generate marketing personas and evaluate the ad copy based on Relevance, Emotional Engagement, Brand Consistency, Creativity, and Persuasiveness."
|
74 |
)
|