Chelsea / app.py
CineAI's picture
41727469634d6f6e6b65793a31392e30332e32343a31373433
cab263c verified
raw
history blame
375 Bytes
# version - ArticMonkey:19.03.24:1743
import numpy as np
import streamlit as st
from audio2text.a2t import A2T
from audiorecorder import audiorecorder
audio = audiorecorder("Click to record", "Click to stop recording")
def main():
if len(audio) > 0:
a2t = A2T(audio)
text = a2t.predict()
st.write(text)
if __name__ == "__main__":
main()