Fix input
Browse files
app.py
CHANGED
@@ -7,9 +7,8 @@ def analyze(img_path):
|
|
7 |
return pd.DataFrame(face_analysis)
|
8 |
|
9 |
demo = gr.Interface(
|
10 |
-
analyze,
|
11 |
-
gr.Image(type="filepath", source="webcam"
|
12 |
-
inputs="image",
|
13 |
outputs="dataframe"
|
14 |
)
|
15 |
|
|
|
7 |
return pd.DataFrame(face_analysis)
|
8 |
|
9 |
demo = gr.Interface(
|
10 |
+
fn=analyze,
|
11 |
+
inputs=gr.Image(type="filepath", source="webcam"),
|
|
|
12 |
outputs="dataframe"
|
13 |
)
|
14 |
|