Cleaned up the exception and Added product_id

This commit is contained in:
2023-05-11 12:50:33 -04:00
parent dddf8e3bb8
commit 2ead943e3a
2 changed files with 56 additions and 26 deletions
+3 -3
View File
@@ -4,8 +4,8 @@ import os
import asyncio
# os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "C:/Users/Karen/AppData/Roaming/gcloud/application_default_credentials.json"
# project_id = "fp-20230425"
project_id = "svig-384801"
project_id = "fp-20230425"
# project_id = "svig-384801"
'''
topic_name = "fp-topic-NFL-zipcodes"
@@ -41,7 +41,7 @@ subscription = subscriber.create_subscription(
# Publish a message to the topic
# Read the data from the csv file
# file_path = "C:/Users/Karen/Desktop/zipcodes.csv"
file_path = "zipcodes.csv"
file_path = "C:/Users/Karen/Desktop/zipcodes.csv"
with open(file_path, "r") as csv_file:
reader = csv.reader(csv_file)