artificialguybr commited on
Commit
892ff2a
β€’
1 Parent(s): 10ac59a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -142,12 +142,14 @@ def process_video(radio, video, target_language):
142
  # Calculate and print the time taken
143
  time_taken = end_time - start_time
144
  print(f"Time taken to process video: {time_taken:.2f} seconds")
145
- return output_video_path
146
-
147
  # Display peak usages at the end
148
  print(f"Peak GPU usage: {peak_gpu_usage * 100}%")
149
  print(f"Peak VRAM usage: {peak_vram_usage}MB")
150
 
 
 
 
151
  def swap(radio):
152
  if(radio == "Upload"):
153
  return gr.update(source="upload")
 
142
  # Calculate and print the time taken
143
  time_taken = end_time - start_time
144
  print(f"Time taken to process video: {time_taken:.2f} seconds")
145
+
 
146
  # Display peak usages at the end
147
  print(f"Peak GPU usage: {peak_gpu_usage * 100}%")
148
  print(f"Peak VRAM usage: {peak_vram_usage}MB")
149
 
150
+ return output_video_path
151
+
152
+
153
  def swap(radio):
154
  if(radio == "Upload"):
155
  return gr.update(source="upload")