flocolombari commited on
Commit
54a4328
·
1 Parent(s): 0935986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -5,8 +5,9 @@ from PIL import Image
5
  import io
6
  import scipy
7
  import torch
 
8
 
9
-
10
 
11
  #Commit
12
  def video_to_descriptions(video, target_language="en"):
@@ -63,7 +64,10 @@ def video_to_descriptions(video, target_language="en"):
63
 
64
  output_path = "./bark_out.wav"
65
  scipy.io.wavfile.write(output_path, data=audio_file["audio"][0], rate=audio_file["sampling_rate"])
66
-
 
 
 
67
  return output_path
68
 
69
  # Create a dropdown menu with language options
 
5
  import io
6
  import scipy
7
  import torch
8
+ import time
9
 
10
+ start_time = time.time()
11
 
12
  #Commit
13
  def video_to_descriptions(video, target_language="en"):
 
64
 
65
  output_path = "./bark_out.wav"
66
  scipy.io.wavfile.write(output_path, data=audio_file["audio"][0], rate=audio_file["sampling_rate"])
67
+
68
+ stop_time = time.time()
69
+
70
+ print("EXECUTION TIME = ", stop_time - start_time)
71
  return output_path
72
 
73
  # Create a dropdown menu with language options