toshas commited on
Commit
9726318
·
1 Parent(s): 322da28

support the latest gradio-dualvision embedding

Browse files
Files changed (1) hide show
  1. app.py +32 -27
app.py CHANGED
@@ -68,33 +68,38 @@ class MarigoldNormalsApp(DualVisionApp):
68
  gr.Markdown(
69
  """
70
  ## Marigold Normals Estimation
71
- <p align="center">
72
- <a title="Website" href="https://marigoldmonodepth.github.io/" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
73
- <img src="https://img.shields.io/badge/%E2%99%A5%20Project%20-Website-blue">
74
- </a>
75
- <a title="arXiv" href="https://arxiv.org/abs/2312.02145" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
76
- <img src="https://img.shields.io/badge/%F0%9F%93%84%20Read%20-Paper-AF3436">
77
- </a>
78
- <a title="Github" href="https://github.com/prs-eth/marigold" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
79
- <img src="https://img.shields.io/github/stars/prs-eth/marigold?label=GitHub%20%E2%98%85&logo=github&color=C8C" alt="badge-github-stars">
80
- </a>
81
- <a title="Image Depth" href="https://huggingface.co/spaces/prs-eth/marigold" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
82
- <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Image%20Depth%20-Demo-yellow" alt="imagedepth">
83
- </a>
84
- <a title="Image Intrinsics" href="https://huggingface.co/spaces/prs-eth/marigold-iid" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
85
- <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Image%20Intrinsics%20-Demo-yellow" alt="imagedepth">
86
- </a>
87
- <a title="Social" href="https://twitter.com/antonobukhov1" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
88
- <img src="https://shields.io/twitter/follow/:?label=Subscribe%20for%20updates!" alt="social">
89
- </a>
90
- </p>
91
- <p align="center" style="margin-top: 0px;">
92
- Upload a photo or select an example below to compute surface normals in real time.
93
- Use the slider to reveal areas of interest.
94
- Use the radio-buttons to switch between modalities.
95
- Check our other demo badges above for new functionality.
96
- </p>
97
- """
 
 
 
 
 
98
  )
99
 
100
  def build_user_components(self):
 
68
  gr.Markdown(
69
  """
70
  ## Marigold Normals Estimation
71
+ """
72
+ )
73
+ with gr.Row(elem_classes="remove-elements"):
74
+ gr.Markdown(
75
+ f"""
76
+ <p align="center">
77
+ <a title="Website" href="https://marigoldmonodepth.github.io/" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
78
+ <img src="https://img.shields.io/badge/%E2%99%A5%20Project%20-Website-blue">
79
+ </a>
80
+ <a title="arXiv" href="https://arxiv.org/abs/2312.02145" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
81
+ <img src="https://img.shields.io/badge/%F0%9F%93%84%20Read%20-Paper-AF3436">
82
+ </a>
83
+ <a title="Github" href="https://github.com/prs-eth/marigold" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
84
+ <img src="https://img.shields.io/github/stars/prs-eth/marigold?label=GitHub%20%E2%98%85&logo=github&color=C8C" alt="badge-github-stars">
85
+ </a>
86
+ <a title="Image Depth" href="https://huggingface.co/spaces/prs-eth/marigold" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
87
+ <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Image%20Depth%20-Demo-yellow" alt="imagedepth">
88
+ </a>
89
+ <a title="Image Intrinsics" href="https://huggingface.co/spaces/prs-eth/marigold-iid" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
90
+ <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Image%20Intrinsics%20-Demo-yellow" alt="imagedepth">
91
+ </a>
92
+ <a title="Social" href="https://twitter.com/antonobukhov1" target="_blank" rel="noopener noreferrer" style="display: inline-block;">
93
+ <img src="https://shields.io/twitter/follow/:?label=Subscribe%20for%20updates!" alt="social">
94
+ </a>
95
+ </p>
96
+ <p align="center" style="margin-top: 0px;">
97
+ Upload a photo or select an example below to compute surface normals in real time.
98
+ Use the slider to reveal areas of interest.
99
+ Use the radio-buttons to switch between modalities.
100
+ Check our other demo badges above for new functionality.
101
+ </p>
102
+ """
103
  )
104
 
105
  def build_user_components(self):