Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
import streamlit.components.v1 as components
|
| 3 |
|
| 4 |
# 1. Page Config
|
| 5 |
-
st.set_page_config(page_title="TeraBites
|
| 6 |
|
| 7 |
# 2. Branding Header
|
| 8 |
st.markdown("""
|
|
@@ -12,13 +12,11 @@ st.markdown("""
|
|
| 12 |
</div>
|
| 13 |
""", unsafe_allow_html=True)
|
| 14 |
|
| 15 |
-
# 3. AI Team
|
| 16 |
-
st.info(""
|
| 17 |
-
**The AI Team** The TeraBites AI Team is a special Team focused to provide users the best AI possible
|
| 18 |
-
and best experience in HF by creating spaces like this!
|
| 19 |
-
""")
|
| 20 |
|
| 21 |
# 4. The TeraBites Oval (Visual Engine)
|
|
|
|
| 22 |
oval_html = """
|
| 23 |
<div style="background: #000; padding: 20px; border-radius: 15px; border: 1px solid #333; text-align: center;">
|
| 24 |
<div id="oval" style="
|
|
@@ -36,18 +34,14 @@ oval_html = """
|
|
| 36 |
"""
|
| 37 |
components.html(oval_html, height=160)
|
| 38 |
|
| 39 |
-
# 5.
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
if st.button("■ STOP"):
|
| 49 |
-
st.session_state.active = False
|
| 50 |
-
st.rerun()
|
| 51 |
-
|
| 52 |
-
if st.session_state.active:
|
| 53 |
-
st.video("https://www.youtube.com/watch?v=KK3KXAECte4") # Megalovania
|
|
|
|
| 2 |
import streamlit.components.v1 as components
|
| 3 |
|
| 4 |
# 1. Page Config
|
| 5 |
+
st.set_page_config(page_title="TeraBites Org Card", layout="centered")
|
| 6 |
|
| 7 |
# 2. Branding Header
|
| 8 |
st.markdown("""
|
|
|
|
| 12 |
</div>
|
| 13 |
""", unsafe_allow_html=True)
|
| 14 |
|
| 15 |
+
# 3. AI Team Mission
|
| 16 |
+
st.info("**The AI Team** The TeraBites AI Team is a special Team focused to provide users the best AI possible and best experience in HF by creating spaces like this!")
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# 4. The TeraBites Oval (Visual Engine)
|
| 19 |
+
# I have set this to be ALWAYS active since we want it ON when the user comes.
|
| 20 |
oval_html = """
|
| 21 |
<div style="background: #000; padding: 20px; border-radius: 15px; border: 1px solid #333; text-align: center;">
|
| 22 |
<div id="oval" style="
|
|
|
|
| 34 |
"""
|
| 35 |
components.html(oval_html, height=160)
|
| 36 |
|
| 37 |
+
# 5. Auto-Start Logic
|
| 38 |
+
# We force the video to autoplay by adding '&autoplay=1&mute=0' to the URL
|
| 39 |
+
# Note: Most browsers require the user to interact before sound plays,
|
| 40 |
+
# but the video/visuals will start immediately.
|
| 41 |
+
st.video("https://www.youtube.com/watch?v=KK3KXAECte4&autoplay=1")
|
| 42 |
|
| 43 |
+
# 6. The "Kill Switch"
|
| 44 |
+
# If they want to stop the madness, they still have the button.
|
| 45 |
+
if st.button("■ EMERGENCY STOP"):
|
| 46 |
+
st.warning("TeraBites Core Offline.")
|
| 47 |
+
st.stop()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|