Spaces:
Runtime error
Runtime error
Commit
·
71bf2de
1
Parent(s):
6284bd8
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,13 @@ import numpy as np
|
|
5 |
import av
|
6 |
import mediapipe as mp
|
7 |
import base64
|
|
|
8 |
|
9 |
|
10 |
###################################### Helper functions ##############################
|
11 |
# Read the image file and encode it as base64
|
12 |
|
13 |
-
with open('
|
14 |
image_data = base64.b64encode(aiface.read()).decode('utf-8')
|
15 |
|
16 |
# Set up MediaPipe Hands
|
|
|
5 |
import av
|
6 |
import mediapipe as mp
|
7 |
import base64
|
8 |
+
import os
|
9 |
|
10 |
|
11 |
###################################### Helper functions ##############################
|
12 |
# Read the image file and encode it as base64
|
13 |
|
14 |
+
with open('Resources/ai_face.jpg', 'rb') as aiface:
|
15 |
image_data = base64.b64encode(aiface.read()).decode('utf-8')
|
16 |
|
17 |
# Set up MediaPipe Hands
|