CineAI commited on
Commit
7b0622e
β€’
1 Parent(s): f17c2a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -16,9 +16,10 @@ def main():
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])
 
16
  text = a2t.predict()
17
  st.write(text)
18
  st.success("Done")
19
+ del audio
20
+ del a2t
21
+ else:
22
+ st.warning("Can't get a text 😭" ,icon="🚨")
23
 
24
  if __name__ == "__main__":
25
  print('RAM memory % used:', psutil.virtual_memory()[2])