Spaces:
Sleeping
Sleeping
Update interface.py
Browse files- interface.py +2 -1
interface.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
|
| 2 |
import gradio as gr
|
|
|
|
| 3 |
from app import download_youtube_video, process_video
|
| 4 |
|
| 5 |
def smartscribe_interface(video_file, youtube_link, services):
|
|
@@ -10,7 +11,7 @@ def smartscribe_interface(video_file, youtube_link, services):
|
|
| 10 |
if youtube_link:
|
| 11 |
download_youtube_video(youtube_link, filename=input_path)
|
| 12 |
else:
|
| 13 |
-
|
| 14 |
|
| 15 |
results = process_video(input_path, services)
|
| 16 |
|
|
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
+
import shutil
|
| 4 |
from app import download_youtube_video, process_video
|
| 5 |
|
| 6 |
def smartscribe_interface(video_file, youtube_link, services):
|
|
|
|
| 11 |
if youtube_link:
|
| 12 |
download_youtube_video(youtube_link, filename=input_path)
|
| 13 |
else:
|
| 14 |
+
shutil.copy(video_file, input_path)
|
| 15 |
|
| 16 |
results = process_video(input_path, services)
|
| 17 |
|