Pratyush101 commited on
Commit
3c1f2cc
·
verified ·
1 Parent(s): 99e69b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -11,8 +11,8 @@ import mediapipe as mp
11
  import os
12
  import time
13
 
14
- # # Logger Setup
15
- # logger = logging.getLogger(__name__)
16
 
17
  # Streamlit settings
18
  st.set_page_config(page_title="Virtual Keyboard", page_icon="🏋️")
@@ -66,12 +66,12 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
66
 
67
  for row, key_row in enumerate(keys):
68
  for col, key in enumerate(key_row):
69
- x = int(0.03 * w + col * (key_width + 5))
70
- y = int(0.03 * h + row * (key_height + 5))
71
  buttonList.append(Button([x, y], key, size=[key_width, key_height]))
72
 
73
  # Add special buttons for Backspace and Space
74
- buttonList.append(Button([int(0.9 * w), int(0.03 * h)], 'BS', size=[int(0.08 * w), key_height]))
75
  buttonList.append(Button([int(0.2 * w), int(0.4 * h)], 'SPACE', size=[int(0.6 * w), key_height]))
76
 
77
  # Draw Keyboard Buttons
 
11
  import os
12
  import time
13
 
14
+ # Logger Setup
15
+ logger = logging.getLogger(_name_)
16
 
17
  # Streamlit settings
18
  st.set_page_config(page_title="Virtual Keyboard", page_icon="🏋️")
 
66
 
67
  for row, key_row in enumerate(keys):
68
  for col, key in enumerate(key_row):
69
+ x = int(0.03 * w + col * (key_width + 10))
70
+ y = int(0.03 * h + row * (key_height + 10))
71
  buttonList.append(Button([x, y], key, size=[key_width, key_height]))
72
 
73
  # Add special buttons for Backspace and Space
74
+ buttonList.append(Button([int(0.85 * w), int(0.03 * h)], 'BS', size=[int(0.08 * w), key_height]))
75
  buttonList.append(Button([int(0.2 * w), int(0.4 * h)], 'SPACE', size=[int(0.6 * w), key_height]))
76
 
77
  # Draw Keyboard Buttons