Spaces:
Paused
Paused
added end of song detection
Browse files
app.py
CHANGED
@@ -54,6 +54,8 @@ if st.button("Submit"):
|
|
54 |
if line.startswith("["):
|
55 |
st.markdown(f"**{line}**")
|
56 |
continue
|
|
|
|
|
57 |
st.write(line)
|
58 |
|
59 |
evaluator_title = st.title("Lyric Evaluator")
|
|
|
54 |
if line.startswith("["):
|
55 |
st.markdown(f"**{line}**")
|
56 |
continue
|
57 |
+
elif line.strip() == "<END_OF_SONG>":
|
58 |
+
break
|
59 |
st.write(line)
|
60 |
|
61 |
evaluator_title = st.title("Lyric Evaluator")
|