smile commited on
Commit
b538fd2
·
1 Parent(s): 8c7bc9b

update app.py

Browse files
Files changed (3) hide show
  1. LICENSE +1 -1
  2. app.py +8 -12
  3. app/ui/home.py +1 -1
LICENSE CHANGED
@@ -1,6 +1,6 @@
1
  MIT License
2
 
3
- Copyright (c) 2025 笑尿伊人
4
 
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
  of this software and associated documentation files (the "Software"), to deal
 
1
  MIT License
2
 
3
+ Copyright (c)
4
 
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
  of this software and associated documentation files (the "Software"), to deal
app.py CHANGED
@@ -9,17 +9,13 @@ from app.ui.about import init_about
9
  import gradio as gr
10
 
11
 
12
- def main():
13
- home = init_home()
14
- about = init_about()
15
 
16
- demo = gr.TabbedInterface(
17
- [home, about],
18
- ["Home", "About"],
19
- css="footer {display: none} .sort-button.svelte-1bvc1p0.svelte-1bvc1p0.svelte-1bvc1p0 {display: none;}"
20
- )
21
- demo.launch()
22
 
23
-
24
- if __name__ == '__main__':
25
- main()
 
9
  import gradio as gr
10
 
11
 
12
+ home = init_home()
13
+ about = init_about()
 
14
 
15
+ demo = gr.TabbedInterface(
16
+ [home, about],
17
+ ["Home", "About"],
18
+ css="footer {display: none} .sort-button.svelte-1bvc1p0.svelte-1bvc1p0.svelte-1bvc1p0 {display: none;}"
19
+ )
20
+ demo.launch()
21
 
 
 
 
app/ui/home.py CHANGED
@@ -27,7 +27,7 @@ def init_home():
27
 
28
  with gr.Blocks(css=HOME_CSS) as block:
29
  gr.Markdown(f"""
30
- [Voyageai] Massive Text Embedding Benchmark (MTEB) Leaderboard. To submit, refer to the <a href="https://github.com/embeddings-benchmark/mteb/blob/main/docs/adding_a_model.md" target="_blank" style="text-decoration: underline">MTEB GitHub repository</a> 🤗 Refer to the [MTEB paper](https://arxiv.org/abs/2210.07316) for details on metrics, tasks and models. Also check out [MTEB Arena](https://huggingface.co/spaces/mteb/arena) ⚔️
31
  """)
32
 
33
  filter_area = FilterComponent(
 
27
 
28
  with gr.Blocks(css=HOME_CSS) as block:
29
  gr.Markdown(f"""
30
+ [Voyageai] Massive Text Embedding Benchmark (MTEB) Leaderboard.
31
  """)
32
 
33
  filter_area = FilterComponent(