dindizz commited on
Commit
a48775a
1 Parent(s): 83e4f4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -64,12 +64,11 @@ def upload_and_analyze(image):
64
 
65
  return result
66
 
67
- # Interface using Gradio for Hugging Face deployment
68
- # Simple UI that takes an image upload
69
  iface = gr.Interface(
70
  fn=upload_and_analyze,
71
- inputs=gr.inputs.Image(type="file", label="Upload Advertisement Image"),
72
- outputs=gr.outputs.Textbox(label="Marketing Persona and Ad Analysis"),
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
  )