Dharini Baskaran commited on
Commit
f419f09
·
1 Parent(s): c9e469a

display inovonics logo

Browse files
Files changed (1) hide show
  1. app.py +14 -6
app.py CHANGED
@@ -34,6 +34,14 @@ os.makedirs(UPLOAD_DIR, exist_ok=True)
34
  os.makedirs(JSON_DIR, exist_ok=True)
35
  os.makedirs(OUTPUT_DIR, exist_ok=True)
36
 
 
 
 
 
 
 
 
 
37
  # Download model if missing
38
  if not os.path.exists(model_path):
39
  print("🚀 Model file not found! Downloading...")
@@ -95,12 +103,12 @@ with gr.Blocks() as demo:
95
  # Header
96
  with gr.Row():
97
  gr.Markdown(
98
- """
99
- <div style='display: flex; align-items: center; justify-content: center;'>
100
- <img src='public/logo.png' style='height: 50px; margin-right: 10px;'/>
101
- <h1>Inovonics 2D Floorplan Vectorizer</h1>
102
- </div>
103
- """
104
  )
105
 
106
  with gr.Row():
 
34
  os.makedirs(JSON_DIR, exist_ok=True)
35
  os.makedirs(OUTPUT_DIR, exist_ok=True)
36
 
37
+ # Copy logo.png to /tmp
38
+ logo_src = os.path.join(BASE_DIR, "public", "logo.png")
39
+ logo_dst = "/tmp/logo.png"
40
+
41
+ # Only copy if not already there
42
+ if not os.path.exists(logo_dst):
43
+ shutil.copy(logo_src, logo_dst)
44
+
45
  # Download model if missing
46
  if not os.path.exists(model_path):
47
  print("🚀 Model file not found! Downloading...")
 
103
  # Header
104
  with gr.Row():
105
  gr.Markdown(
106
+ f"""
107
+ <div style='display: flex; align-items: center; justify-content: center;'>
108
+ <img src='file/tmp/logo.png' style='height: 50px; margin-right: 10px;'/>
109
+ <h1>Inovonics 2D Floorplan Vectorizer</h1>
110
+ </div>
111
+ """
112
  )
113
 
114
  with gr.Row():