seawolf2357 commited on
Commit
9da241a
โ€ข
1 Parent(s): 9e25e78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,15 +3,15 @@ import os
3
 
4
  # Hugging Face ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธ (์ฒ˜์Œ ์‹คํ–‰ ์‹œ ๋กœ๊ทธ์ธ ์ •๋ณด ์ž…๋ ฅ)
5
  hf_username = "seawolf2357" # ์—ฌ๊ธฐ์— Hugging Face ์‚ฌ์šฉ์ž ์ด๋ฆ„ ์ž…๋ ฅ
6
- repo_name = "video" # ์—ฌ๊ธฐ์— ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ด๋ฆ„ ์ž…๋ ฅ (์—†์œผ๋ฉด ์ƒ์„ฑ๋จ)
7
  file_path = "your_file_path.mp4" # ์—…๋กœ๋“œํ•  ํŒŒ์ผ์˜ ๊ฒฝ๋กœ
8
 
9
  # API ์ดˆ๊ธฐํ™”
10
  api = HfApi()
11
 
12
- # ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ๊ฒฝ๋กœ ์„ค์ •
13
  repo_url = api.create_repo(
14
- name=repo_name,
15
  token=HfFolder.get_token(),
16
  private=False, # True๋กœ ์„ค์ •ํ•˜๋ฉด ๋น„๊ณต๊ฐœ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ
17
  exist_ok=True # ์ด๋ฏธ ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ ์˜ค๋ฅ˜ ๋ฐฉ์ง€
 
3
 
4
  # Hugging Face ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธ (์ฒ˜์Œ ์‹คํ–‰ ์‹œ ๋กœ๊ทธ์ธ ์ •๋ณด ์ž…๋ ฅ)
5
  hf_username = "seawolf2357" # ์—ฌ๊ธฐ์— Hugging Face ์‚ฌ์šฉ์ž ์ด๋ฆ„ ์ž…๋ ฅ
6
+ repo_name = "your_repo_name" # ์—ฌ๊ธฐ์— ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ด๋ฆ„ ์ž…๋ ฅ (์—†์œผ๋ฉด ์ƒ์„ฑ๋จ)
7
  file_path = "your_file_path.mp4" # ์—…๋กœ๋“œํ•  ํŒŒ์ผ์˜ ๊ฒฝ๋กœ
8
 
9
  # API ์ดˆ๊ธฐํ™”
10
  api = HfApi()
11
 
12
+ # ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ ๋˜๋Š” ์„ ํƒ
13
  repo_url = api.create_repo(
14
+ repo_id=f"{hf_username}/{repo_name}",
15
  token=HfFolder.get_token(),
16
  private=False, # True๋กœ ์„ค์ •ํ•˜๋ฉด ๋น„๊ณต๊ฐœ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ƒ์„ฑ
17
  exist_ok=True # ์ด๋ฏธ ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ ์˜ค๋ฅ˜ ๋ฐฉ์ง€