Mpavan45 commited on
Commit
f285a88
·
verified ·
1 Parent(s): e281319

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -6
app.py CHANGED
@@ -1,13 +1,23 @@
1
 
2
-
3
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- # ✅ Ensure this is the first Streamlit command
6
- st.set_page_config(page_title="Gemini Chatbot", layout="wide")
7
 
8
- st.markdown("""
9
- <h1 style="text-align:center; color: #FF4500;">Welcome To Gemini CodeReviewer using Gemini API.....</h1>
10
- """, unsafe_allow_html=True)
11
 
12
 
13
  import google.generativeai as genai
 
1
 
 
2
  import streamlit as st
3
+ import time
4
+
5
+ # Set page config
6
+ st.set_page_config(page_title="Gemini Code Reviewer", layout="wide")
7
+
8
+ # Animated text function
9
+ def animated_text(text, speed=0.05):
10
+ placeholder = st.empty()
11
+ displayed_text = ""
12
+ for letter in text:
13
+ displayed_text += letter
14
+ placeholder.markdown(f"### {displayed_text} 🚀") # Change size/style if needed
15
+ time.sleep(speed)
16
+
17
+ # Display animated text
18
+ animated_text("Welcome to Gemini CodeReviewer using the Gemini API!", speed=0.1)
19
 
 
 
20
 
 
 
 
21
 
22
 
23
  import google.generativeai as genai