xktan commited on
Commit
90c4499
·
verified ·
1 Parent(s): 4f8fed9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -690,7 +690,7 @@ def process_image(focal_image, same_brand_files, competitive_brand_files):
690
 
691
  #emtion
692
  emotion_results = analyze_face_features(focal_image)
693
- emo_angray = emotion_results["angry"]
694
  emo_disgust = emotion_results["disgust"]
695
  emo_fear = emotion_results["fear"]
696
  emo_happy = emotion_results["happy"]
@@ -732,7 +732,7 @@ def process_image(focal_image, same_brand_files, competitive_brand_files):
732
  promotion_count,
733
  call_to_action_count,
734
  brand_salience_count,
735
- emo_angray,
736
  emo_disgust,
737
  emo_fear,
738
  emo_happy,
@@ -878,7 +878,7 @@ with gr.Blocks() as demo:
878
 
879
  gr.Markdown("## Facial Emotions")
880
  with gr.Row():
881
- emo_angray_output = gr.Textbox(label='Angray')
882
  emo_disgust_output = gr.Textbox(label='Disgust')
883
  emo_fear_output = gr.Textbox(label='Fear')
884
  with gr.Row():
@@ -948,7 +948,7 @@ with gr.Blocks() as demo:
948
  promotion_indication_count_output,
949
  call_to_action_count_output,
950
  brand_salience_output,
951
- emo_angray,
952
  emo_disgust,
953
  emo_fear,
954
  emo_happy,
 
690
 
691
  #emtion
692
  emotion_results = analyze_face_features(focal_image)
693
+ emo_angry = emotion_results["angry"]
694
  emo_disgust = emotion_results["disgust"]
695
  emo_fear = emotion_results["fear"]
696
  emo_happy = emotion_results["happy"]
 
732
  promotion_count,
733
  call_to_action_count,
734
  brand_salience_count,
735
+ emo_angry,
736
  emo_disgust,
737
  emo_fear,
738
  emo_happy,
 
878
 
879
  gr.Markdown("## Facial Emotions")
880
  with gr.Row():
881
+ emo_angry_output = gr.Textbox(label='Angry')
882
  emo_disgust_output = gr.Textbox(label='Disgust')
883
  emo_fear_output = gr.Textbox(label='Fear')
884
  with gr.Row():
 
948
  promotion_indication_count_output,
949
  call_to_action_count_output,
950
  brand_salience_output,
951
+ emo_angry,
952
  emo_disgust,
953
  emo_fear,
954
  emo_happy,