justin2341 commited on
Commit
d94bb6a
·
verified ·
1 Parent(s): 38e6e2e

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +3 -0
demo.py CHANGED
@@ -4,6 +4,9 @@ import datadog_api_client
4
  from gradio.components import Image
5
  from PIL import Image as PILImage, ImageDraw, ImageFont # This import may be needed if you're processing images
6
  from PIL import Image
 
 
 
7
 
8
  def face_crop(image, face_rect):
9
  x1 = face_rect.get('x1')
 
4
  from gradio.components import Image
5
  from PIL import Image as PILImage, ImageDraw, ImageFont # This import may be needed if you're processing images
6
  from PIL import Image
7
+ import json
8
+ import io
9
+ import base64
10
 
11
  def face_crop(image, face_rect):
12
  x1 = face_rect.get('x1')