Sharathhebbar24 commited on
Commit
521529d
·
verified ·
1 Parent(s): 80b4623

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -207,10 +207,14 @@ with gr.Blocks() as get_notifications_page:
207
  outputs=[title, notification],
208
  )
209
 
 
 
 
 
210
  with gr.Blocks() as demo:
211
  NavBar()
212
  gr.Image(
213
- value="./background.png",
214
  show_label=False,
215
  elem_classes="full-img",
216
  )
 
207
  outputs=[title, notification],
208
  )
209
 
210
+
211
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
212
+ background_path = os.path.join(BASE_DIR, "background.png")
213
+
214
  with gr.Blocks() as demo:
215
  NavBar()
216
  gr.Image(
217
+ value=background_path,
218
  show_label=False,
219
  elem_classes="full-img",
220
  )