Spaces:
Build error
Build error
Initial Draft
Browse files
app.py
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import speech_recognition as sr
|
| 3 |
from streaming_stt_nemo import Model
|
| 4 |
|
| 5 |
-
if "
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
|
| 13 |
def main():
|
| 14 |
st.title("Speech to Text Converter")
|
|
|
|
| 1 |
+
import subprocess
|
| 2 |
import streamlit as st
|
| 3 |
import speech_recognition as sr
|
| 4 |
from streaming_stt_nemo import Model
|
| 5 |
|
| 6 |
+
if "sv_load_flash_attention" not in st.session_state:
|
| 7 |
+
subprocess.run(
|
| 8 |
+
"pip install flash-attn --no-build-isolation",
|
| 9 |
+
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
| 10 |
+
shell=True,
|
| 11 |
+
)
|
| 12 |
+
st.session_state.sv_load_flash_attention = True
|
| 13 |
|
| 14 |
def main():
|
| 15 |
st.title("Speech to Text Converter")
|