Rasta02 commited on
Commit
51d5e7a
·
verified ·
1 Parent(s): 31b62e1

Upload google_colabs/Video_Subtitle_Remover.ipynb with huggingface_hub

Browse files
google_colabs/Video_Subtitle_Remover.ipynb CHANGED
@@ -70,8 +70,8 @@
70
  "outputs": [],
71
  "source": [
72
  "# Clone the repository\n",
73
- "!git clone https://github.com/walidurrosyad/video-subtitle-remover.git\n",
74
- "%cd video-subtitle-remover"
75
  ]
76
  },
77
  {
@@ -92,7 +92,7 @@
92
  "# Verify the repository structure\n",
93
  "import os\n",
94
  "\n",
95
- "repo_path = '/content/video-subtitle-remover'\n",
96
  "if os.path.exists(repo_path):\n",
97
  " print('\u2713 Repository cloned successfully')\n",
98
  " print(f' Path: {repo_path}')\n",
@@ -200,7 +200,7 @@
200
  "\n",
201
  "# Video path (change this)\n",
202
  "# Option 1: Use sample video\n",
203
- "VIDEO_PATH = '/content/video-subtitle-remover/test/test.mp4'\n",
204
  "\n",
205
  "# Option 2: Use video from Google Drive (uncomment)\n",
206
  "# VIDEO_PATH = '/content/drive/MyDrive/my_video.mp4'\n",
@@ -233,8 +233,8 @@
233
  "source": [
234
  "# Modify config.py with our settings\n",
235
  "import sys\n",
236
- "sys.path.insert(0, '/content/video-subtitle-remover')\n",
237
- "sys.path.insert(0, '/content/video-subtitle-remover/backend')\n",
238
  "\n",
239
  "from backend import config\n",
240
  "from backend.config import InpaintMode\n",
@@ -437,7 +437,7 @@
437
  "from backend.main import SubtitleRemover\n",
438
  "\n",
439
  "# Folder containing videos\n",
440
- "video_folder = '/content/video-subtitle-remover/test/'\n",
441
  "\n",
442
  "# Find all MP4 files\n",
443
  "video_files = glob.glob(os.path.join(video_folder, '*.mp4'))\n",
 
70
  "outputs": [],
71
  "source": [
72
  "# Clone the repository\n",
73
+ "!git clone https://huggingface.co/Rasta02/dataku\n",
74
+ "%cd dataku"
75
  ]
76
  },
77
  {
 
92
  "# Verify the repository structure\n",
93
  "import os\n",
94
  "\n",
95
+ "repo_path = '/content/dataku'\n",
96
  "if os.path.exists(repo_path):\n",
97
  " print('\u2713 Repository cloned successfully')\n",
98
  " print(f' Path: {repo_path}')\n",
 
200
  "\n",
201
  "# Video path (change this)\n",
202
  "# Option 1: Use sample video\n",
203
+ "VIDEO_PATH = '/content/dataku/test/test.mp4'\n",
204
  "\n",
205
  "# Option 2: Use video from Google Drive (uncomment)\n",
206
  "# VIDEO_PATH = '/content/drive/MyDrive/my_video.mp4'\n",
 
233
  "source": [
234
  "# Modify config.py with our settings\n",
235
  "import sys\n",
236
+ "sys.path.insert(0, '/content/dataku')\n",
237
+ "sys.path.insert(0, '/content/dataku/backend')\n",
238
  "\n",
239
  "from backend import config\n",
240
  "from backend.config import InpaintMode\n",
 
437
  "from backend.main import SubtitleRemover\n",
438
  "\n",
439
  "# Folder containing videos\n",
440
+ "video_folder = '/content/dataku/test/'\n",
441
  "\n",
442
  "# Find all MP4 files\n",
443
  "video_files = glob.glob(os.path.join(video_folder, '*.mp4'))\n",