Selaa lähdekoodia

Remove useless print

StrayWarrior 5 kuukautta sitten
vanhempi
commit
220c2e7720
2 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
  1. 1 1
      applications/embedding_manager.py
  2. 1 3
      routes/accountServer.py

+ 1 - 1
applications/embedding_manager.py

@@ -79,7 +79,7 @@ class EmbeddingManager:
         with self.lock:
             for idx, text in enumerate(text_list):
                 if text in self.cache:
-                    print(f"find {text} in cache")
+                    # print(f"find {text} in cache")
                     embedding_list[idx] = self.cache[text]
                 else:
                     new_texts.append(text)

+ 1 - 3
routes/accountServer.py

@@ -44,7 +44,7 @@ class AccountServer(object):
         async with aiohttp.ClientSession() as session:
             async with session.post(url, headers=headers, json=body) as response:
                 response_text = await response.text()
-                print("结果:\t", response_text)
+                # print("结果:\t", response_text)
                 if response_text:
                     return await response.json()
                 else:
@@ -112,8 +112,6 @@ class AccountServer(object):
                 (good_df["show_view_count"] / good_df["view_count_avg"]).values.tolist()
 
         account_interest = good_df["title"].values.tolist()
-        print(account_interest)
-        print(extend_dicts)
         return account_interest, extend_dicts
 
     async def get_each_account_score_list(self, gh_id):