Bagratuni commited on
Commit
2029a14
·
verified ·
1 Parent(s): 0d208c0

Delete main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -45
main.py DELETED
@@ -1,45 +0,0 @@
1
- import gradio as gr
2
- import pandas as pd
3
- import plotly.express as px
4
-
5
- def display_table():
6
- df = pd.read_csv('benchmark_results.csv')
7
- return df
8
-
9
- def create_bar_chart():
10
- df = pd.read_csv('benchmark_results.csv')
11
- fig = px.bar(df,
12
- x='average_score',
13
- y='model',
14
- color='average_score',
15
- color_continuous_scale='tealrose',
16
- hover_data=['armenian_language_score', 'armenian_history_score', 'mathematics_score'],
17
- labels={'average_score': 'Average Score', 'model': 'Model'},
18
- title='Average Score per Model',
19
- orientation='h',
20
- range_color=[0, 20])
21
-
22
- fig.update_layout(
23
- xaxis=dict(range=[0, 20]),
24
- title=dict(text='Average Score per Model', font=dict(size=16)),
25
- xaxis_title=dict(font=dict(size=12)),
26
- yaxis_title=dict(font=dict(size=12)),
27
- yaxis=dict(autorange="reversed"),
28
- hoverlabel=dict(
29
- bgcolor="white",
30
- font_size=12,
31
- font_family="Arial",
32
- font_color="black"
33
- )
34
- )
35
-
36
- return fig
37
-
38
- with gr.Blocks() as app:
39
- gr.Markdown("# ArmBench Leaderboard")
40
- table_output = gr.DataFrame(value=display_table())
41
- plot_output = gr.Plot(create_bar_chart)
42
-
43
- app.launch(share=True)
44
-
45
-