Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def sample_analyze_entities(text_content):
|
|
47 |
)
|
48 |
|
49 |
client = language_v1.LanguageServiceClient(credentials=credentials)
|
50 |
-
document = {"content": text_content, "type_": language_v1.Document.Type.PLAIN_TEXT, "language": "
|
51 |
encoding_type = language_v1.EncodingType.UTF8
|
52 |
|
53 |
response = client.analyze_entities(request={"document": document, "encoding_type": encoding_type})
|
|
|
47 |
)
|
48 |
|
49 |
client = language_v1.LanguageServiceClient(credentials=credentials)
|
50 |
+
document = {"content": text_content, "type_": language_v1.Document.Type.PLAIN_TEXT, "language": "en"}
|
51 |
encoding_type = language_v1.EncodingType.UTF8
|
52 |
|
53 |
response = client.analyze_entities(request={"document": document, "encoding_type": encoding_type})
|