Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
# Animated text function
|
| 4 |
+
def animated_text(text, speed=0.05):
|
| 5 |
+
placeholder = st.empty()
|
| 6 |
+
displayed_text = ""
|
| 7 |
+
for letter in text:
|
| 8 |
+
displayed_text += letter
|
| 9 |
+
placeholder.markdown(f"""
|
| 10 |
+
<h1 style="text-align:center; color: #FF4500;">{displayed_text} 🚀</h1>
|
| 11 |
+
""", unsafe_allow_html=True) # Corrected f-string formatting
|
| 12 |
+
time.sleep(speed)
|
| 13 |
+
|
| 14 |
+
# Display animated text
|
| 15 |
+
animated_text("Welcome to GenAI App - AI Code Reviewer!", speed=0.1)
|