Spaces:
Running
on
Zero
Running
on
Zero
Update ui/app_class.py
Browse files- ui/app_class.py +47 -14
ui/app_class.py
CHANGED
@@ -23,30 +23,63 @@ from ui.utils import (
|
|
23 |
)
|
24 |
|
25 |
DESCRIPTION = """
|
26 |
-
|
27 |
-
<
|
28 |
-
|
29 |
-
|
30 |
-
</div>
|
31 |
</div>
|
32 |
|
33 |
-
|
34 |
-
<div
|
35 |
-
|
|
|
|
|
|
|
|
|
36 |
</div>
|
37 |
|
|
|
|
|
|
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
Here we provide our MINIMA-model in our paper for test and comparison and this project is undergoing continuous enhancement.
|
43 |
"""
|
44 |
|
|
|
45 |
CSS = """
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
"""
|
49 |
|
|
|
50 |
class ImageMatchingApp:
|
51 |
def __init__(self, server_name="0.0.0.0", server_port=7860, **kwargs):
|
52 |
self.server_name = server_name
|
|
|
23 |
)
|
24 |
|
25 |
DESCRIPTION = """
|
26 |
+
<div style="display: flex; justify-content: center; align-items: center; margin-bottom: 20px;">
|
27 |
+
<h1 style="width: 100%; text-align: center; font-size: 40px; font-weight: bold; color: #333;">
|
28 |
+
MINIMA: Modality Invariant Image Matching
|
29 |
+
</h1>
|
|
|
30 |
</div>
|
31 |
|
32 |
+
<div style="display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px;">
|
33 |
+
<div>
|
34 |
+
<a href="https://github.com/LSXI7/MINIMA"><img src="https://img.shields.io/badge/Source_Code-black?logo=Github" alt="Github Source Code"></a>
|
35 |
+
</div>
|
36 |
+
<div>
|
37 |
+
<a href="https://arxiv.org/abs/0.0"><img src="https://img.shields.io/badge/arXiv-PDF-b31b1b" alt="arXiv"></a>
|
38 |
+
</div>
|
39 |
</div>
|
40 |
|
41 |
+
<p style="text-align: center; font-size: 16px; color: #666;">
|
42 |
+
This Space is derived from <a href="https://github.com/Vincentqyw/image-matching-webui" style="color: #007BFF;">Image Matching WebUI</a>.
|
43 |
+
</p>
|
44 |
|
45 |
+
<p style="text-align: center; font-size: 16px; color: #666;">
|
46 |
+
We are grateful to the authors for their contribution of the source code. Here we provide our MINIMA-model in our paper for test and comparison, and this project is undergoing continuous enhancement.
|
47 |
+
</p>
|
|
|
48 |
"""
|
49 |
|
50 |
+
|
51 |
CSS = """
|
52 |
+
body {
|
53 |
+
font-family: Arial, sans-serif;
|
54 |
+
background-color: #f9f9f9;
|
55 |
+
margin: 0;
|
56 |
+
padding: 0;
|
57 |
+
}
|
58 |
+
#logo-img {
|
59 |
+
width: 100px;
|
60 |
+
height: auto;
|
61 |
+
margin: 20px auto;
|
62 |
+
display: block;
|
63 |
+
}
|
64 |
+
h1 {
|
65 |
+
font-size: 40px;
|
66 |
+
color: #333;
|
67 |
+
}
|
68 |
+
a {
|
69 |
+
text-decoration: none;
|
70 |
+
color: #007BFF;
|
71 |
+
}
|
72 |
+
a:hover {
|
73 |
+
text-decoration: underline;
|
74 |
+
}
|
75 |
+
.logs_class textarea {
|
76 |
+
font-size: 12px !important;
|
77 |
+
border: 1px solid #ddd;
|
78 |
+
border-radius: 4px;
|
79 |
+
}
|
80 |
"""
|
81 |
|
82 |
+
|
83 |
class ImageMatchingApp:
|
84 |
def __init__(self, server_name="0.0.0.0", server_port=7860, **kwargs):
|
85 |
self.server_name = server_name
|