CineAI commited on
Commit
3c2d633
1 Parent(s): 5c636bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -3,6 +3,7 @@
3
  import psutil
4
  import base64
5
  import time
 
6
 
7
  import streamlit as st
8
  from audio_processing.A2T import A2T
@@ -30,11 +31,14 @@ def main():
30
  a2t = A2T(mic["bytes"])
31
  text = a2t.predict()
32
  response = llmchain(entity=text, id=0)
 
33
  t2a = T2A(response)
 
34
  autoplay(t2a)
 
 
35
 
36
 
37
  if __name__ == "__main__":
38
- print('RAM memory % used:', psutil.virtual_memory()[2])
39
- print('RAM Used (GB):', psutil.virtual_memory()[3]/1000000000)
40
  main()
 
3
  import psutil
4
  import base64
5
  import time
6
+ import sys
7
 
8
  import streamlit as st
9
  from audio_processing.A2T import A2T
 
31
  a2t = A2T(mic["bytes"])
32
  text = a2t.predict()
33
  response = llmchain(entity=text, id=0)
34
+ print(response)
35
  t2a = T2A(response)
36
+ print(t2a)
37
  autoplay(t2a)
38
+ print(sys.getsizeof(a2t), " ", sys.getsizeof(text), " ", sys.getsizeof(t2a), " ", sys.getsizeof(llmchain))
39
+ del response
40
 
41
 
42
  if __name__ == "__main__":
43
+ print('RAM memory % used:', psutil.virtual_memory()[2]) # ~ 94 GB full memory
 
44
  main()