Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
More visual fix
Browse files
app.py
CHANGED
|
@@ -92,14 +92,13 @@ if not isGPU:
|
|
| 92 |
st.warning("TOOL CURRENTLY USING CPU, ANALYSIS EXTREMELY SLOW")
|
| 93 |
|
| 94 |
st.write(
|
| 95 |
-
'If you would like to see a sample result
|
| 96 |
-
'
|
| 97 |
-
'select "Single File Demo" or "Multiple Files Demo" on the left sidebar.'
|
| 98 |
)
|
| 99 |
st.markdown(
|
| 100 |
"<p style='margin-bottom:4px;'>Keep in mind that this is a very early draft of the tool. "
|
| 101 |
"Please be patient with any bugs/errors, and email Connor Young at "
|
| 102 |
-
"czyoung@ualr.edu if you need help using the tool!</p>"
|
| 103 |
"<hr style='margin-top:4px; margin-bottom:8px;'>",
|
| 104 |
unsafe_allow_html=True,
|
| 105 |
)
|
|
@@ -356,7 +355,7 @@ try:
|
|
| 356 |
on_click=removeCategory, args=(i,),
|
| 357 |
)
|
| 358 |
|
| 359 |
-
st.sidebar.text_input("Add
|
| 360 |
|
| 361 |
# -----------------------------------------------------------------------
|
| 362 |
# Sidebar — rename speakers
|
|
@@ -367,8 +366,7 @@ try:
|
|
| 367 |
st.sidebar.markdown(
|
| 368 |
"<p style='font-size:0.85rem; color:gray; margin-bottom:2px;'>"
|
| 369 |
"Assign a name and select which speaker labels (across all files) it applies to. "
|
| 370 |
-
"Changes apply to all matched speakers instantly.</p>"
|
| 371 |
-
"<hr style='margin-top:2px; margin-bottom:6px;'>",
|
| 372 |
unsafe_allow_html=True,
|
| 373 |
)
|
| 374 |
|
|
|
|
| 92 |
st.warning("TOOL CURRENTLY USING CPU, ANALYSIS EXTREMELY SLOW")
|
| 93 |
|
| 94 |
st.write(
|
| 95 |
+
'If you would like to see a sample result generated from real classroom audio, '
|
| 96 |
+
'use the sidebar on the left and press "Load Demo Example"'
|
|
|
|
| 97 |
)
|
| 98 |
st.markdown(
|
| 99 |
"<p style='margin-bottom:4px;'>Keep in mind that this is a very early draft of the tool. "
|
| 100 |
"Please be patient with any bugs/errors, and email Connor Young at "
|
| 101 |
+
"<a href='mailto:czyoung@ualr.edu'>czyoung@ualr.edu</a> if you need help using the tool!</p>"
|
| 102 |
"<hr style='margin-top:4px; margin-bottom:8px;'>",
|
| 103 |
unsafe_allow_html=True,
|
| 104 |
)
|
|
|
|
| 355 |
on_click=removeCategory, args=(i,),
|
| 356 |
)
|
| 357 |
|
| 358 |
+
st.sidebar.text_input("Add category", key="categoryInput", on_change=addCategory)
|
| 359 |
|
| 360 |
# -----------------------------------------------------------------------
|
| 361 |
# Sidebar — rename speakers
|
|
|
|
| 366 |
st.sidebar.markdown(
|
| 367 |
"<p style='font-size:0.85rem; color:gray; margin-bottom:2px;'>"
|
| 368 |
"Assign a name and select which speaker labels (across all files) it applies to. "
|
| 369 |
+
"Changes apply to all matched speakers instantly.</p>",
|
|
|
|
| 370 |
unsafe_allow_html=True,
|
| 371 |
)
|
| 372 |
|