thomasanto7001 commited on
Commit
7c12e62
·
verified ·
1 Parent(s): a4e49da

Update interface.py

Browse files
Files changed (1) hide show
  1. 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
- video_file.save(input_path)
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