paulbauriegel commited on
Commit
a45d825
1 Parent(s): 8cf1ebf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,9 +23,9 @@ def speech_to_text_translate(mic=None, file=None, lang=None):
23
  objects = [s._asdict() for s in segments]
24
  time_end = time.time()
25
  time_diff = time_end - time_start
26
- memory = psutil.virtual_memory()
 
27
  system_info = f"""
28
- *Memory: {memory.total / (1024 * 1024 * 1024):.2f}GB, used: {memory.percent}%, available: {memory.available / (1024 * 1024 * 1024):.2f}GB.*
29
  *Processing time: {time_diff:.5} seconds.*
30
  """
31
  df_results = pd.DataFrame(objects)
 
23
  objects = [s._asdict() for s in segments]
24
  time_end = time.time()
25
  time_diff = time_end - time_start
26
+ #memory = psutil.virtual_memory()
27
+ # *Memory: {memory.total / (1024 * 1024 * 1024):.2f}GB, used: {memory.percent}%, available: {memory.available / (1024 * 1024 * 1024):.2f}GB.*
28
  system_info = f"""
 
29
  *Processing time: {time_diff:.5} seconds.*
30
  """
31
  df_results = pd.DataFrame(objects)