Spaces:
Runtime error
Runtime error
Update
Browse files- gradio/demo.py +3 -2
gradio/demo.py
CHANGED
@@ -7,6 +7,7 @@ def compare_face(frame1, frame2):
|
|
7 |
files = {'file1': open(frame1, 'rb'), 'file2': open(frame2, 'rb')}
|
8 |
|
9 |
r = requests.post(url=url, files=files)
|
|
|
10 |
'''
|
11 |
html = None
|
12 |
faces = None
|
@@ -114,12 +115,12 @@ with gr.Blocks() as demo:
|
|
114 |
)
|
115 |
with gr.Row():
|
116 |
with gr.Column():
|
117 |
-
compare_face_input1 = gr.Image(type='filepath', height=
|
118 |
gr.Examples(['gradio/examples/1.jpg', 'gradio/examples/2.jpg'],
|
119 |
inputs=compare_face_input1)
|
120 |
compare_face_button = gr.Button("Compare Face")
|
121 |
with gr.Column():
|
122 |
-
compare_face_input2 = gr.Image(type='filepath', height=
|
123 |
gr.Examples(['gradio/examples/3.jpg', 'gradio/examples/4.jpg'],
|
124 |
inputs=compare_face_input2)
|
125 |
with gr.Column():
|
|
|
7 |
files = {'file1': open(frame1, 'rb'), 'file2': open(frame2, 'rb')}
|
8 |
|
9 |
r = requests.post(url=url, files=files)
|
10 |
+
print("==================", r.json())
|
11 |
'''
|
12 |
html = None
|
13 |
faces = None
|
|
|
115 |
)
|
116 |
with gr.Row():
|
117 |
with gr.Column():
|
118 |
+
compare_face_input1 = gr.Image(type='filepath', height=480)
|
119 |
gr.Examples(['gradio/examples/1.jpg', 'gradio/examples/2.jpg'],
|
120 |
inputs=compare_face_input1)
|
121 |
compare_face_button = gr.Button("Compare Face")
|
122 |
with gr.Column():
|
123 |
+
compare_face_input2 = gr.Image(type='filepath', height=480)
|
124 |
gr.Examples(['gradio/examples/3.jpg', 'gradio/examples/4.jpg'],
|
125 |
inputs=compare_face_input2)
|
126 |
with gr.Column():
|