Spaces:
Runtime error
Runtime error
Commit
·
b9ae502
1
Parent(s):
24e79c8
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def analyze(sentence):
|
|
17 |
en_sentence = translation.text
|
18 |
|
19 |
# Create a TextBlob object for the sentence
|
20 |
-
blob = TextBlob(
|
21 |
|
22 |
# Get the polarity score for the sentence
|
23 |
polarity_score = blob.sentiment.polarity
|
|
|
17 |
en_sentence = translation.text
|
18 |
|
19 |
# Create a TextBlob object for the sentence
|
20 |
+
blob = TextBlob(en_sentence)
|
21 |
|
22 |
# Get the polarity score for the sentence
|
23 |
polarity_score = blob.sentiment.polarity
|