Skriller0208 commited on
Commit
a78c6ca
·
verified ·
1 Parent(s): 68aa6e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -1,4 +1,19 @@
1
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  import time
3
  import soundfile as sf
4
  from whisper_processor import process_audio
@@ -44,4 +59,4 @@ if uploaded_file is not None:
44
 
45
  # Display the transcription result
46
  st.write("Transcription:")
47
- st.text_area("", value=result, height=300)
 
1
  import streamlit as st
2
+ import subprocess
3
+
4
+ def run_makefile():
5
+ result = subprocess.run(["make"], capture_output=True, text=True)
6
+ if result.returncode == 0:
7
+ st.success(f"Makefile executed successfully:\n{result.stdout}")
8
+ else:
9
+ st.error(f"Makefile execution failed:\n{result.stderr}")
10
+
11
+ st.title("Run Makefile")
12
+
13
+ if st.button("Run Makefile"):
14
+ run_makefile()
15
+
16
+ '''import streamlit as st
17
  import time
18
  import soundfile as sf
19
  from whisper_processor import process_audio
 
59
 
60
  # Display the transcription result
61
  st.write("Transcription:")
62
+ st.text_area("", value=result, height=300)'''