CineAI commited on
Commit
f17c2a1
1 Parent(s): 8ecbd9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -11,17 +11,14 @@ def main():
11
 
12
  if len(audio) > 0:
13
  a2t = A2T(audio)
14
- print(type(audio))
15
  if st.button("Get text"):
16
  with st.spinner("Wait for it...."):
17
  text = a2t.predict()
18
- print("Text output in main : ", text)
19
  st.write(text)
20
  st.success("Done")
21
- del audio
22
- del a2t
23
- else:
24
- print("error audio is None")
25
 
26
  if __name__ == "__main__":
27
  print('RAM memory % used:', psutil.virtual_memory()[2])
 
11
 
12
  if len(audio) > 0:
13
  a2t = A2T(audio)
 
14
  if st.button("Get text"):
15
  with st.spinner("Wait for it...."):
16
  text = a2t.predict()
 
17
  st.write(text)
18
  st.success("Done")
19
+
20
+ del audio
21
+ del a2t
 
22
 
23
  if __name__ == "__main__":
24
  print('RAM memory % used:', psutil.virtual_memory()[2])