Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,12 @@ st.set_page_config(
|
|
20 |
page_icon="π",
|
21 |
)
|
22 |
|
|
|
|
|
23 |
auth_token = os.environ.get("auth_token")
|
24 |
|
|
|
|
|
25 |
@st.experimental_singleton()
|
26 |
def load_models():
|
27 |
asr_model = whisper.load_model("small")
|
@@ -123,4 +127,5 @@ def make_spans(text,results):
|
|
123 |
def fin_ext(text):
|
124 |
results = remote_clx(sent_tokenizer(text))
|
125 |
return make_spans(text,results)
|
126 |
-
|
|
|
|
20 |
page_icon="π",
|
21 |
)
|
22 |
|
23 |
+
st.sidebar.header("Home")
|
24 |
+
|
25 |
auth_token = os.environ.get("auth_token")
|
26 |
|
27 |
+
progress_bar = st.sidebar.progress(0)
|
28 |
+
|
29 |
@st.experimental_singleton()
|
30 |
def load_models():
|
31 |
asr_model = whisper.load_model("small")
|
|
|
127 |
def fin_ext(text):
|
128 |
results = remote_clx(sent_tokenizer(text))
|
129 |
return make_spans(text,results)
|
130 |
+
|
131 |
+
progress_bar.empty()
|