arshtech commited on
Commit
7055129
·
verified ·
1 Parent(s): 0858bea

Create gesture_loader.py

Browse files
Files changed (1) hide show
  1. gesture_loader.py +11 -0
gesture_loader.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+
3
+ GESTURE_URL = "https://github.com/imarshbir/Hand2Voice/blob/main/gestures/gesture_rules.json"
4
+
5
+ def load_gestures():
6
+ """
7
+ Loads gesture rules from GitHub
8
+ """
9
+ response = requests.get(GESTURE_URL)
10
+ data = response.json()
11
+ return data["gestures"]