Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -59,6 +59,7 @@ with gr.Blocks() as demo:
|
|
59 |
label="Image",
|
60 |
type="filepath"
|
61 |
)
|
|
|
62 |
with gr.Row():
|
63 |
rotate_pitch = gr.Slider(
|
64 |
label="Rotate Pitch", info='''Rotation pitch: Adjusts the up and down tilt of the face''',
|
@@ -153,18 +154,18 @@ with gr.Blocks() as demo:
|
|
153 |
outputs=outputs,
|
154 |
)
|
155 |
|
156 |
-
rotate_pitch.release(fn=predict, inputs=inputs, outputs=outputs)
|
157 |
-
rotate_yaw.release(fn=predict, inputs=inputs, outputs=outputs)
|
158 |
-
rotate_roll.release(fn=predict, inputs=inputs, outputs=outputs)
|
159 |
-
blink.release(fn=predict, inputs=inputs, outputs=outputs)
|
160 |
-
eyebrow.release(fn=predict, inputs=inputs, outputs=outputs)
|
161 |
-
wink.release(fn=predict, inputs=inputs, outputs=outputs)
|
162 |
-
pupil_x.release(fn=predict, inputs=inputs, outputs=outputs)
|
163 |
-
pupil_y.release(fn=predict, inputs=inputs, outputs=outputs)
|
164 |
-
aaa.release(fn=predict, inputs=inputs, outputs=outputs)
|
165 |
-
eee.release(fn=predict, inputs=inputs, outputs=outputs)
|
166 |
-
woo.release(fn=predict, inputs=inputs, outputs=outputs)
|
167 |
-
smile.release(fn=predict, inputs=inputs, outputs=outputs)
|
168 |
|
169 |
demo.launch(share=False, show_error=True)
|
170 |
|
|
|
59 |
label="Image",
|
60 |
type="filepath"
|
61 |
)
|
62 |
+
with gr.Column():
|
63 |
with gr.Row():
|
64 |
rotate_pitch = gr.Slider(
|
65 |
label="Rotate Pitch", info='''Rotation pitch: Adjusts the up and down tilt of the face''',
|
|
|
154 |
outputs=outputs,
|
155 |
)
|
156 |
|
157 |
+
rotate_pitch.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
158 |
+
rotate_yaw.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
159 |
+
rotate_roll.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
160 |
+
blink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
161 |
+
eyebrow.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
162 |
+
wink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
163 |
+
pupil_x.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
164 |
+
pupil_y.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
165 |
+
aaa.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
166 |
+
eee.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
167 |
+
woo.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
168 |
+
smile.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
169 |
|
170 |
demo.launch(share=False, show_error=True)
|
171 |
|