IPF commited on
Commit
919215b
·
verified ·
1 Parent(s): 00a4c3d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- logo_path = os.path.join(os.path.dirname(script_dir), "assets", "imgs", "or-logo1.png")
2136
- title_path = os.path.join(os.path.dirname(script_dir), "assets", "imgs", "openresearcher-title.svg")
 
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 2rem 1rem 2rem;
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;