Akshatha Arodi commited on
Commit
6bfd2d8
·
1 Parent(s): 4fb276f

static logo

Browse files
hackaprompt/gradio_app.py CHANGED
@@ -122,7 +122,8 @@ with gr.Blocks(css="""
122
  # Default evaluator when page loads (level 0)
123
  evaluator_0 = gr.State(get_evaluator(level=0, completer=None))
124
 
125
- gr.Image("mila_logo.jpg", container=False, elem_id="logo", show_label=False, show_download_button=False, show_fullscreen_button=False) # Adjust the size of the logo as needed
 
126
 
127
  gr.Markdown(
128
  """
@@ -205,4 +206,4 @@ USERNAME, PASSWORD = os.getenv("APP_USERNAME"), os.getenv("APP_PASSWORD")
205
  if USERNAME and PASSWORD:
206
  demo.launch(auth=(USERNAME, PASSWORD))
207
  else:
208
- demo.launch(allowed_paths=["/"])
 
122
  # Default evaluator when page loads (level 0)
123
  evaluator_0 = gr.State(get_evaluator(level=0, completer=None))
124
 
125
+ image_path = os.path.join(os.path.dirname(__file__), "static", "mila_logo.png")
126
+ gr.Image(image_path, container=False, elem_id="logo", show_label=False, show_download_button=False, show_fullscreen_button=False) # Adjust the size of the logo as needed
127
 
128
  gr.Markdown(
129
  """
 
206
  if USERNAME and PASSWORD:
207
  demo.launch(auth=(USERNAME, PASSWORD))
208
  else:
209
+ demo.launch()
hackaprompt/static/mila_logo.png ADDED