Spaces:
Configuration error
Configuration error
Kangarroar
commited on
Commit
•
c10663c
1
Parent(s):
4018fbb
Update app.py
Browse files
app.py
CHANGED
@@ -113,12 +113,11 @@ if "audio_temp_file" in locals():
|
|
113 |
# Add a text input for the title with a default value of 0
|
114 |
title = st.text_input("Key", value="0")
|
115 |
title2 = st.text_input("Speedup", value="20")
|
|
|
|
|
116 |
# Add a button to start the rendering process
|
117 |
# Add a button to start the rendering process
|
118 |
if st.button("Render audio"):
|
119 |
-
password = st.text_input("Enter password")
|
120 |
-
with open("network/hubert/Hifi.txt", "r") as f:
|
121 |
-
correct_password = f.read().strip()
|
122 |
if password == correct_password:
|
123 |
render_audio(ckpt_temp_file, config_temp_file, audio_temp_file, title, title2)
|
124 |
|
|
|
113 |
# Add a text input for the title with a default value of 0
|
114 |
title = st.text_input("Key", value="0")
|
115 |
title2 = st.text_input("Speedup", value="20")
|
116 |
+
if password = st.text_input("Enter password")
|
117 |
+
correct_password = os.environ.get("gatepassword")
|
118 |
# Add a button to start the rendering process
|
119 |
# Add a button to start the rendering process
|
120 |
if st.button("Render audio"):
|
|
|
|
|
|
|
121 |
if password == correct_password:
|
122 |
render_audio(ckpt_temp_file, config_temp_file, audio_temp_file, title, title2)
|
123 |
|