blazingbunny
commited on
Commit
•
0a84f1f
1
Parent(s):
ca1b39b
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def sample_classify_text(text_content):
|
|
45 |
request={
|
46 |
"document": document,
|
47 |
"classification_model_options": {
|
48 |
-
"
|
49 |
# choose between v1_model or v2_model, https://cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions
|
50 |
},
|
51 |
}
|
|
|
45 |
request={
|
46 |
"document": document,
|
47 |
"classification_model_options": {
|
48 |
+
"v2_model": {"content_categories_version": content_categories_version}
|
49 |
# choose between v1_model or v2_model, https://cloud.google.com/natural-language/docs/reference/rest/v1/ClassificationModelOptions
|
50 |
},
|
51 |
}
|