Spaces:
Runtime error
Runtime error
Update app.py
Browse filesadded frontend things
app.py
CHANGED
@@ -48,6 +48,10 @@ def predict(url=None, translation="No",tran_lang="en"):
|
|
48 |
return detected_lang, transcription, trans
|
49 |
else:
|
50 |
return lang_dict, transcription
|
|
|
|
|
|
|
|
|
51 |
|
52 |
url = st.text_input(label="Please enter the YouTube url: ")
|
53 |
tran_req = st.selectbox(label="Do you want to translate the transcript?",options=("Yes","No"))
|
|
|
48 |
return detected_lang, transcription, trans
|
49 |
else:
|
50 |
return lang_dict, transcription
|
51 |
+
st.image(image="https://www.google.com/url?sa=i&url=https%3A%2F%2Fanalyticsindiamag.com%2Fall-the-tech-you-need-to-know-that-powers-speech-to-text-on-your-device%2F&psig=AOvVaw2KQVFHqncUGFOEH9qodTxF&ust=1676468967049000&source=images&cd=vfe&ved=0CBAQjRxqFwoTCOiVpdyTlf0CFQAAAAAdAAAAABAE")
|
52 |
+
st.title("Sppech to Text generator")
|
53 |
+
|
54 |
+
st.write("This app uses an open source neural net called Whisper(developed by OpenAI)")
|
55 |
|
56 |
url = st.text_input(label="Please enter the YouTube url: ")
|
57 |
tran_req = st.selectbox(label="Do you want to translate the transcript?",options=("Yes","No"))
|