Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('
|
35 |
-
negative_count = response.count('
|
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'
|