Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,12 +64,11 @@ def upload_and_analyze(image):
|
|
64 |
|
65 |
return result
|
66 |
|
67 |
-
#
|
68 |
-
# Simple UI that takes an image upload
|
69 |
iface = gr.Interface(
|
70 |
fn=upload_and_analyze,
|
71 |
-
inputs=gr.
|
72 |
-
outputs=gr.
|
73 |
title="Advertisement Persona and Scoring Analyzer",
|
74 |
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."
|
75 |
)
|
|
|
64 |
|
65 |
return result
|
66 |
|
67 |
+
# Updated Gradio interface for Hugging Face deployment
|
|
|
68 |
iface = gr.Interface(
|
69 |
fn=upload_and_analyze,
|
70 |
+
inputs=gr.Image(type="file", label="Upload Advertisement Image"), # Updated to gr.Image
|
71 |
+
outputs=gr.Textbox(label="Marketing Persona and Ad Analysis"), # Updated to gr.Textbox
|
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 |
)
|