Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -2132,8 +2132,9 @@ def create_interface():
|
|
| 2132 |
|
| 2133 |
with gr.Blocks(css=INLINE_CSS, theme=gr.themes.Soft(), js=CAROUSEL_JS) as demo:
|
| 2134 |
# Header with logo and title images - convert to base64 for proper rendering
|
| 2135 |
-
|
| 2136 |
-
|
|
|
|
| 2137 |
|
| 2138 |
logo_base64 = image_to_base64(logo_path)
|
| 2139 |
title_base64 = image_to_base64(title_path)
|
|
@@ -2142,7 +2143,7 @@ def create_interface():
|
|
| 2142 |
header_html = f"""
|
| 2143 |
<div style="
|
| 2144 |
text-align: center;
|
| 2145 |
-
padding: 1rem
|
| 2146 |
background: transparent;
|
| 2147 |
display: flex;
|
| 2148 |
flex-direction: row;
|
|
|
|
| 2132 |
|
| 2133 |
with gr.Blocks(css=INLINE_CSS, theme=gr.themes.Soft(), js=CAROUSEL_JS) as demo:
|
| 2134 |
# Header with logo and title images - convert to base64 for proper rendering
|
| 2135 |
+
# Files are in the same directory as app.py (test1/)
|
| 2136 |
+
logo_path = os.path.join(script_dir, "or-logo1.png")
|
| 2137 |
+
title_path = os.path.join(script_dir, "openresearcher-title.svg")
|
| 2138 |
|
| 2139 |
logo_base64 = image_to_base64(logo_path)
|
| 2140 |
title_base64 = image_to_base64(title_path)
|
|
|
|
| 2143 |
header_html = f"""
|
| 2144 |
<div style="
|
| 2145 |
text-align: center;
|
| 2146 |
+
padding: 0.5rem 1rem 0.5rem 1rem;
|
| 2147 |
background: transparent;
|
| 2148 |
display: flex;
|
| 2149 |
flex-direction: row;
|