alex-abb commited on
Commit
0ad1374
1 Parent(s): 35f0746

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,8 +31,8 @@ You are a feeling analyser and you'll say only "positive1" if I'm feeling positi
31
  if isinstance(output, list) and len(output) > 0:
32
  response = output[0].get('generated_text', '').strip().lower()
33
 
34
- positive_count = response.count('positive')
35
- negative_count = response.count('negative')
36
 
37
  if positive_count >= 2:
38
  return 'positive'
 
31
  if isinstance(output, list) and len(output) > 0:
32
  response = output[0].get('generated_text', '').strip().lower()
33
 
34
+ positive_count = response.count('positive1')
35
+ negative_count = response.count('negative1')
36
 
37
  if positive_count >= 2:
38
  return 'positive'