change input text format from str to number
Browse files
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.
|
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:
|