Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,8 @@ if check_password():
|
|
34 |
if 'file_name' not in st.session_state or st.session_state.file_name != file_name:
|
35 |
st.session_state.transcript = ''
|
36 |
st.session_state.file_name = file_name
|
|
|
|
|
37 |
|
38 |
st.audio(uploaded_file)
|
39 |
file_extension = uploaded_file.name.split(".")[-1] # Получаем расширение файла
|
@@ -42,6 +44,7 @@ if check_password():
|
|
42 |
with open(temp_file_path, "wb") as f:
|
43 |
f.write(uploaded_file.getbuffer())
|
44 |
|
|
|
45 |
if 'transcript' not in st.session_state or st.session_state.transcript == '':
|
46 |
|
47 |
with st.spinner('Транскрибируем...'):
|
|
|
34 |
if 'file_name' not in st.session_state or st.session_state.file_name != file_name:
|
35 |
st.session_state.transcript = ''
|
36 |
st.session_state.file_name = file_name
|
37 |
+
print(file_name)
|
38 |
+
print(transcript)
|
39 |
|
40 |
st.audio(uploaded_file)
|
41 |
file_extension = uploaded_file.name.split(".")[-1] # Получаем расширение файла
|
|
|
44 |
with open(temp_file_path, "wb") as f:
|
45 |
f.write(uploaded_file.getbuffer())
|
46 |
|
47 |
+
print(st.session_state.transcript)
|
48 |
if 'transcript' not in st.session_state or st.session_state.transcript == '':
|
49 |
|
50 |
with st.spinner('Транскрибируем...'):
|