Spaces:
Running
Running
Update demo.py
Browse files
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')
|