Zw07 commited on
Commit
dba66ad
·
verified ·
1 Parent(s): 651d68e

change input text format from str to number

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -144,7 +144,7 @@ def main():
144
  action = st.selectbox("Select Action", ["Add Watermark", "Decode Watermark"])
145
 
146
  if action == "Add Watermark":
147
- watermark_text = st.text_input("The watermark (0, 1 list of length-16):", value=st.session_state.def_value)
148
  add_watermark_button = st.button("Add Watermark", key="add_watermark_btn")
149
  if add_watermark_button: # 点击按钮后执行的
150
  if audio_file and watermark_text:
 
144
  action = st.selectbox("Select Action", ["Add Watermark", "Decode Watermark"])
145
 
146
  if action == "Add Watermark":
147
+ watermark_text = st.number_input("The watermark (0, 1 list of length-16):", value=st.session_state.def_value)
148
  add_watermark_button = st.button("Add Watermark", key="add_watermark_btn")
149
  if add_watermark_button: # 点击按钮后执行的
150
  if audio_file and watermark_text: