Spaces:
Runtime error
Runtime error
Commit
·
d6938f5
1
Parent(s):
4a6c498
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,12 +16,13 @@ import PIL
|
|
| 16 |
|
| 17 |
|
| 18 |
def greet(name):
|
| 19 |
-
|
| 20 |
# creating a image object (main image)
|
| 21 |
im1 = Image.fromarray(name)
|
| 22 |
# save a image using extension
|
| 23 |
-
im1 = im1.save(
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
iface = gr.Interface(fn=greet, inputs=gr.inputs.Image(), outputs="image")
|
| 27 |
iface.launch()
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
def greet(name):
|
| 19 |
+
test_image_path="geeks.jpg"
|
| 20 |
# creating a image object (main image)
|
| 21 |
im1 = Image.fromarray(name)
|
| 22 |
# save a image using extension
|
| 23 |
+
im1 = im1.save(test_image_path)
|
| 24 |
+
test_image = face_recognition.load_image_file(test_image_path)
|
| 25 |
+
return test_image
|
| 26 |
|
| 27 |
iface = gr.Interface(fn=greet, inputs=gr.inputs.Image(), outputs="image")
|
| 28 |
iface.launch()
|