Spaces:
Paused
Paused
Commit ·
c605477
1
Parent(s): b3fc5a1
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,11 +51,11 @@ def cut_video(link, resolusi_input, start_time_str, end_time_str):
|
|
| 51 |
durasi_video = str(timedelta(seconds=yt.length))
|
| 52 |
|
| 53 |
video_info = f"""Nama Channel: {nama_channel}
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
|
| 60 |
resolusi_tersedia = [stream.resolution for stream in yt.streams.filter(progressive=True)]
|
| 61 |
video_info += f"\nResolusi yang tersedia: {', '.join(resolusi_tersedia)}"
|
|
@@ -84,7 +84,6 @@ def cut_video(link, resolusi_input, start_time_str, end_time_str):
|
|
| 84 |
|
| 85 |
return video_info, output_file_path, output_file_path
|
| 86 |
|
| 87 |
-
|
| 88 |
iface = gr.Interface(
|
| 89 |
fn=cut_video,
|
| 90 |
inputs=[
|
|
|
|
| 51 |
durasi_video = str(timedelta(seconds=yt.length))
|
| 52 |
|
| 53 |
video_info = f"""Nama Channel: {nama_channel}
|
| 54 |
+
Judul Video: {judul_video}
|
| 55 |
+
Tanggal Upload: {tanggal_upload}
|
| 56 |
+
Jumlah Viewer: {jumlah_viewer}
|
| 57 |
+
Rata-rata Viewer per Hari: {rata2_viewer_per_hari}
|
| 58 |
+
Durasi Video: {durasi_video}"""
|
| 59 |
|
| 60 |
resolusi_tersedia = [stream.resolution for stream in yt.streams.filter(progressive=True)]
|
| 61 |
video_info += f"\nResolusi yang tersedia: {', '.join(resolusi_tersedia)}"
|
|
|
|
| 84 |
|
| 85 |
return video_info, output_file_path, output_file_path
|
| 86 |
|
|
|
|
| 87 |
iface = gr.Interface(
|
| 88 |
fn=cut_video,
|
| 89 |
inputs=[
|