Spaces:
Runtime error
Runtime error
Commit
·
91f2be0
1
Parent(s):
1601266
Update app.py
Browse files
app.py
CHANGED
@@ -70,6 +70,17 @@ title = "6D Rotation Representation for Unconstrained Head Pose Estimation"
|
|
70 |
description = "Gradio demo for 6DRepNet. To use it, simply click the camera picture. Read more at the links below."
|
71 |
article = "<div style='text-align: center;'><a href='https://github.com/thohemp/6DRepNet' target='_blank'>Github Repo</a> | <a href='https://arxiv.org/abs/2202.12555' target='_blank'>Paper</a></div>"
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
iface = gr.Interface(
|
75 |
fn=predict,
|
@@ -79,8 +90,7 @@ iface = gr.Interface(
|
|
79 |
title=title,
|
80 |
description=description,
|
81 |
article=article,
|
82 |
-
css =
|
83 |
-
|
84 |
)
|
85 |
|
86 |
iface.launch()
|
|
|
70 |
description = "Gradio demo for 6DRepNet. To use it, simply click the camera picture. Read more at the links below."
|
71 |
article = "<div style='text-align: center;'><a href='https://github.com/thohemp/6DRepNet' target='_blank'>Github Repo</a> | <a href='https://arxiv.org/abs/2202.12555' target='_blank'>Paper</a></div>"
|
72 |
|
73 |
+
image_flip_css = """
|
74 |
+
.input-image .image-preview img {
|
75 |
+
-webkit-transform: scaleX(-1);
|
76 |
+
transform: scaleX(-1) !important;
|
77 |
+
}
|
78 |
+
|
79 |
+
.output-image img {
|
80 |
+
-webkit-transform: scaleX(-1);
|
81 |
+
transform: scaleX(-1) !important;
|
82 |
+
}
|
83 |
+
"""
|
84 |
|
85 |
iface = gr.Interface(
|
86 |
fn=predict,
|
|
|
90 |
title=title,
|
91 |
description=description,
|
92 |
article=article,
|
93 |
+
css = image_flip_css
|
|
|
94 |
)
|
95 |
|
96 |
iface.launch()
|