Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ async def main_async():
|
|
68 |
# -- pass new subreddits through classifier to determine if they are technology related --
|
69 |
print("passing new subreddits through classifier to determine if they are technology related...")
|
70 |
|
71 |
-
topic_classifier_client = InferenceClient(model="gulnuravci/subreddit_description_topic_classifier", token=os.getenv("
|
72 |
|
73 |
# key is the parent company and the value is a list of subreddit objects that are technology related
|
74 |
subreddits_passed_topic_classifier = defaultdict(list)
|
@@ -153,7 +153,7 @@ def main(results, post_comments):
|
|
153 |
API_URL = "https://wk6x4kfrdikhsi0n.us-east-1.aws.endpoints.huggingface.cloud"
|
154 |
headers = {
|
155 |
"Accept" : "application/json",
|
156 |
-
"Authorization": "Bearer " + os.getenv("
|
157 |
"Content-Type": "application/json"
|
158 |
}
|
159 |
|
|
|
68 |
# -- pass new subreddits through classifier to determine if they are technology related --
|
69 |
print("passing new subreddits through classifier to determine if they are technology related...")
|
70 |
|
71 |
+
topic_classifier_client = InferenceClient(model="gulnuravci/subreddit_description_topic_classifier", token=os.getenv("REDDIT_READ"))
|
72 |
|
73 |
# key is the parent company and the value is a list of subreddit objects that are technology related
|
74 |
subreddits_passed_topic_classifier = defaultdict(list)
|
|
|
153 |
API_URL = "https://wk6x4kfrdikhsi0n.us-east-1.aws.endpoints.huggingface.cloud"
|
154 |
headers = {
|
155 |
"Accept" : "application/json",
|
156 |
+
"Authorization": "Bearer " + os.getenv("REDDIT_READ"),
|
157 |
"Content-Type": "application/json"
|
158 |
}
|
159 |
|