AIRider commited on
Commit
bdbc2da
ยท
verified ยท
1 Parent(s): 573e23e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,14 +8,14 @@ from sklearn.feature_extraction.text import TfidfVectorizer
8
  from sklearn.cluster import KMeans
9
  from datetime import datetime, timedelta
10
  import os
11
- from huggingface_hub import InferenceApi # Hugging Face Hub API ์‚ฌ์šฉ
12
 
13
  # ์—ฌ๊ธฐ์— YouTube API ํ‚ค๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”
14
- YOUTUBE_API_KEY = "AIzaSyDNZX0U6XNmKRj-Lu6ghc2E2Q1KVmkK4ps"
15
 
16
  def create_client(model_name):
17
  token = os.getenv("HF_TOKEN")
18
- return InferenceApi(repo_id=model_name, token=token)
19
 
20
  client = create_client("CohereForAI/c4ai-command-r-plus")
21
 
 
8
  from sklearn.cluster import KMeans
9
  from datetime import datetime, timedelta
10
  import os
11
+ from huggingface_hub import InferenceClient # Hugging Face Hub API ์‚ฌ์šฉ
12
 
13
  # ์—ฌ๊ธฐ์— YouTube API ํ‚ค๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”
14
+ YOUTUBE_API_KEY = "YOUR_YOUTUBE_API_KEY"
15
 
16
  def create_client(model_name):
17
  token = os.getenv("HF_TOKEN")
18
+ return InferenceClient(model_name, token=token)
19
 
20
  client = create_client("CohereForAI/c4ai-command-r-plus")
21