Update app.py
Browse files
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 |
-
|
22 |
-
|
23 |
-
|
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])
|