logo
Browse files- app.py +14 -1
- logo_G.jpeg +0 -0
- logo_GNOSES.jpeg +0 -0
app.py
CHANGED
|
@@ -2112,7 +2112,20 @@ with gr.Blocks(title="Research Brain") as demo:
|
|
| 2112 |
</script>
|
| 2113 |
"""
|
| 2114 |
|
| 2115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2116 |
|
| 2117 |
with gr.Row():
|
| 2118 |
# Sidebar: all controls grouped in sections
|
|
|
|
| 2112 |
</script>
|
| 2113 |
"""
|
| 2114 |
|
| 2115 |
+
# Header with logo in top right
|
| 2116 |
+
logo_path = None
|
| 2117 |
+
for ext in [".jpeg", ".jpg", ".png"]:
|
| 2118 |
+
path = f"logo_G{ext}"
|
| 2119 |
+
if os.path.exists(path):
|
| 2120 |
+
logo_path = path
|
| 2121 |
+
break
|
| 2122 |
+
|
| 2123 |
+
with gr.Row():
|
| 2124 |
+
with gr.Column(scale=3):
|
| 2125 |
+
gr.Markdown("## Research Brain\nBuild and explore knowledge graphs from research documents, publications, and datasets.")
|
| 2126 |
+
with gr.Column(scale=1, min_width=100):
|
| 2127 |
+
if logo_path:
|
| 2128 |
+
gr.Image(value=logo_path, label="", show_label=False, container=False, min_width=100, height=100)
|
| 2129 |
|
| 2130 |
with gr.Row():
|
| 2131 |
# Sidebar: all controls grouped in sections
|
logo_G.jpeg
ADDED
|
logo_GNOSES.jpeg
ADDED
|