Spaces:
Runtime error
Runtime error
Commit
·
699b8ce
1
Parent(s):
d4d84e7
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,15 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import tempfile
|
| 3 |
-
st.title('DIFF-SVC Render')
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
audio = st.file_uploader("Choose your audio", type=["wav", "mp3"])
|
| 15 |
-
|
| 16 |
-
if st.button("Render audio"):
|
| 17 |
-
print("done")
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
def main():
|
| 4 |
+
st.set_page_config(page_title="Terms of Service Agreement", page_icon=":guardsman:", layout="wide")
|
| 5 |
+
st.title("Terms of Service Agreement")
|
| 6 |
|
| 7 |
+
agreed = st.checkbox("I agree to the terms of service")
|
| 8 |
+
username = st.text_input("Enter your username")
|
| 9 |
+
|
| 10 |
+
if st.button("Submit") and agreed and username.strip():
|
| 11 |
+
st.title("Congratulations!")
|
| 12 |
+
st.write(f"Welcome to our platform, {username}!")
|
| 13 |
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
main()
|
|
|
|
|
|
|
|
|
|
|
|