iisadia commited on
Commit
4109ca4
·
verified ·
1 Parent(s): c1b1ffb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -0
app.py CHANGED
@@ -14,6 +14,33 @@ import hashlib
14
  from audio_recorder_streamlit import audio_recorder
15
  from transformers import pipeline
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ######################################
18
  # Voice Input Helper Functions
19
  ######################################
 
14
  from audio_recorder_streamlit import audio_recorder
15
  from transformers import pipeline
16
 
17
+
18
+ def main():
19
+ inject_custom_css()
20
+
21
+ # Add the cursor-following element
22
+ st.markdown("""
23
+ <div id="follower" style="
24
+ position: absolute;
25
+ width: 50px;
26
+ height: 50px;
27
+ background: url('https://example.com/your-dragon-image.png') no-repeat center center;
28
+ background-size: contain;
29
+ pointer-events: none;
30
+ transition: transform 0.1s;">
31
+ </div>
32
+ <script>
33
+ document.addEventListener('mousemove', function(e) {
34
+ const follower = document.getElementById('follower');
35
+ follower.style.transform = 'translate(' + (e.clientX - 25) + 'px, ' + (e.clientY - 25) + 'px)';
36
+ });
37
+ </script>
38
+ """, unsafe_allow_html=True)
39
+
40
+ st.markdown('<div class="title">KASOTI</div>', unsafe_allow_html=True)
41
+ st.markdown('<div class="subtitle">AI-Powered Guessing Game Challenge</div>', unsafe_allow_html=True)
42
+
43
+
44
  ######################################
45
  # Voice Input Helper Functions
46
  ######################################