Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,10 @@ from google.cloud import translate_v2 as translate
|
|
9 |
import zipfile
|
10 |
import io
|
11 |
|
12 |
-
|
|
|
|
|
|
|
13 |
# Set your Google Cloud Document AI processor details here
|
14 |
project_id = "herbaria-ai"
|
15 |
location = "us"
|
|
|
9 |
import zipfile
|
10 |
import io
|
11 |
|
12 |
+
import os
|
13 |
+
# Upload credential json file from default compute service account
|
14 |
+
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "herbaria-ai-3c860bcb0f44.json"
|
15 |
+
|
16 |
# Set your Google Cloud Document AI processor details here
|
17 |
project_id = "herbaria-ai"
|
18 |
location = "us"
|