fffiloni commited on
Commit
70e88e5
1 Parent(s): 7236a22

added timestamps in logs

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import torch
3
  import whisper
4
-
5
  from PIL import Image
6
 
7
  import os
@@ -73,6 +73,12 @@ def translate(audio):
73
  Sending audio to Whisper ...
74
 
75
  """)
 
 
 
 
 
 
76
  audio = whisper.load_audio(audio)
77
  audio = whisper.pad_or_trim(audio)
78
 
 
1
  import gradio as gr
2
  import torch
3
  import whisper
4
+ from datetime import datetime
5
  from PIL import Image
6
 
7
  import os
 
73
  Sending audio to Whisper ...
74
 
75
  """)
76
+ # current dateTime
77
+ now = datetime.now()
78
+ # convert to string
79
+ date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
80
+ print('DateTime String:', date_time_str)
81
+
82
  audio = whisper.load_audio(audio)
83
  audio = whisper.pad_or_trim(audio)
84