gulnuravci commited on
Commit
b05b731
·
verified ·
1 Parent(s): b7a3ea5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("HF_TOKEN_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,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("HF_TOKEN_READ"),
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