windyeh commited on
Commit
817a089
·
1 Parent(s): 430dbff

display format

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,8 +13,8 @@ except:
13
  st.markdown(f':red[發生錯誤,請重新輸入]')
14
 
15
  st.write(f'斷詞結果:\n')
16
- result = "$~~~~~~$".join(f"{item[0]} `{item[1]}`" for item in chunk if item)
17
- st.markdown(f'### {result}')
18
 
19
  st.divider()
20
  st.markdown('MONPA Github [https://github.com/monpa-team/monpa](https://github.com/monpa-team/monpa)')
 
13
  st.markdown(f':red[發生錯誤,請重新輸入]')
14
 
15
  st.write(f'斷詞結果:\n')
16
+ result = "$~~~$".join(f"[{item[0]}$~$`{item[1]}`]" for item in chunk if item[0] not in {" ", ""})
17
+ st.markdown(f'#### {result}')
18
 
19
  st.divider()
20
  st.markdown('MONPA Github [https://github.com/monpa-team/monpa](https://github.com/monpa-team/monpa)')