Spaces:
Configuration error
Configuration error
Kangarroar
commited on
Commit
•
ac5cf17
1
Parent(s):
c046758
Rename Temps to app.py
Browse files- Temps → app.py +8 -1
Temps → app.py
RENAMED
@@ -111,5 +111,12 @@ if "audio_temp_file" in locals():
|
|
111 |
# Add a text input for the title with a default value of 0
|
112 |
title = st.text_input("Key", value="0")
|
113 |
# Add a button to start the rendering process
|
|
|
114 |
if st.button("Render audio"):
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
# Add a text input for the title with a default value of 0
|
112 |
title = st.text_input("Key", value="0")
|
113 |
# Add a button to start the rendering process
|
114 |
+
# Add a button to start the rendering process
|
115 |
if st.button("Render audio"):
|
116 |
+
password = st.text_input("Enter password")
|
117 |
+
with open("network/hubert/Hifi.txt", "r") as f:
|
118 |
+
correct_password = f.read().strip()
|
119 |
+
if password != correct_password:
|
120 |
+
st.error("Incorrect password")
|
121 |
+
else:
|
122 |
+
render_audio(ckpt_temp_file, config_temp_file, audio_temp_file, title)
|