Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,17 +64,17 @@ with gr.Blocks() as demo:
|
|
| 64 |
)
|
| 65 |
with gr.Row():
|
| 66 |
rotate_pitch = gr.Slider(
|
| 67 |
-
label="Rotate
|
| 68 |
value=0,
|
| 69 |
minimum=-20, maximum=20
|
| 70 |
)
|
| 71 |
rotate_yaw = gr.Slider(
|
| 72 |
-
label="Rotate
|
| 73 |
value=0,
|
| 74 |
minimum=-20, maximum=20
|
| 75 |
)
|
| 76 |
rotate_roll = gr.Slider(
|
| 77 |
-
label="Rotate
|
| 78 |
minimum=-20, maximum=20
|
| 79 |
)
|
| 80 |
with gr.Row():
|
|
@@ -156,17 +156,17 @@ with gr.Blocks() as demo:
|
|
| 156 |
outputs=outputs,
|
| 157 |
)
|
| 158 |
|
| 159 |
-
rotate_pitch.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 160 |
-
rotate_yaw.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 161 |
-
rotate_roll.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 162 |
-
blink.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 163 |
-
eyebrow.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 164 |
-
wink.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 165 |
-
pupil_x.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 166 |
-
pupil_y.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 167 |
-
aaa.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 168 |
-
eee.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 169 |
-
woo.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 170 |
-
smile.release(fn=predict, inputs=inputs, outputs=outputs)
|
| 171 |
|
| 172 |
demo.launch(share=False, show_error=True)
|
|
|
|
| 64 |
)
|
| 65 |
with gr.Row():
|
| 66 |
rotate_pitch = gr.Slider(
|
| 67 |
+
label="Rotate Up-Down",
|
| 68 |
value=0,
|
| 69 |
minimum=-20, maximum=20
|
| 70 |
)
|
| 71 |
rotate_yaw = gr.Slider(
|
| 72 |
+
label="Rotate Left-Right turn",
|
| 73 |
value=0,
|
| 74 |
minimum=-20, maximum=20
|
| 75 |
)
|
| 76 |
rotate_roll = gr.Slider(
|
| 77 |
+
label="Rotate Left-Right tilt", value=0,
|
| 78 |
minimum=-20, maximum=20
|
| 79 |
)
|
| 80 |
with gr.Row():
|
|
|
|
| 156 |
outputs=outputs,
|
| 157 |
)
|
| 158 |
|
| 159 |
+
rotate_pitch.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 160 |
+
rotate_yaw.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 161 |
+
rotate_roll.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 162 |
+
blink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 163 |
+
eyebrow.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 164 |
+
wink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 165 |
+
pupil_x.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 166 |
+
pupil_y.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 167 |
+
aaa.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 168 |
+
eee.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 169 |
+
woo.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 170 |
+
smile.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal")
|
| 171 |
|
| 172 |
demo.launch(share=False, show_error=True)
|