Jamshaid89
commited on
Commit
•
343b529
1
Parent(s):
b97e62c
Added empty image predirct function
Browse files
app.py
CHANGED
@@ -24,6 +24,8 @@ def save_identity(image , name):
|
|
24 |
except Exception as error:
|
25 |
return str(error)
|
26 |
|
|
|
|
|
27 |
|
28 |
# image_input = gr.inputs.Image(shape=(160,160))
|
29 |
label_output = gr.outputs.Textbox()
|
@@ -53,7 +55,7 @@ output_image = gr.outputs.Image(type="numpy")
|
|
53 |
|
54 |
# Create the Gradio interface for image input and output
|
55 |
interface2 = gr.Interface(
|
56 |
-
fn=
|
57 |
inputs=image_input2,
|
58 |
outputs=output_image,
|
59 |
title="Face Identification",
|
|
|
24 |
except Exception as error:
|
25 |
return str(error)
|
26 |
|
27 |
+
def predict_image(image):
|
28 |
+
return "Image prediction"
|
29 |
|
30 |
# image_input = gr.inputs.Image(shape=(160,160))
|
31 |
label_output = gr.outputs.Textbox()
|
|
|
55 |
|
56 |
# Create the Gradio interface for image input and output
|
57 |
interface2 = gr.Interface(
|
58 |
+
fn=predict_image,
|
59 |
inputs=image_input2,
|
60 |
outputs=output_image,
|
61 |
title="Face Identification",
|