dindizz commited on
Commit
1d8e0f9
1 Parent(s): a48775a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="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
  )
 
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
  )