Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,42 @@ import pandas as pd
|
|
12 |
|
13 |
|
14 |
benchmark_data = {
|
15 |
-
'Model': [
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
-
|
21 |
def display_results():
|
22 |
df = pd.DataFrame(benchmark_data)
|
23 |
return df
|
@@ -31,10 +61,6 @@ with gr.Blocks() as demo:
|
|
31 |
headers=["Model", "Creativity Score", "Coherence Score", "Diversity Score"],
|
32 |
interactive=False
|
33 |
)
|
34 |
-
|
35 |
-
# Button to refresh/display results
|
36 |
-
refresh_btn = gr.Button("Show Results")
|
37 |
-
refresh_btn.click(fn=display_results, outputs=output)
|
38 |
|
39 |
if __name__ == "__main__":
|
40 |
demo.launch()
|
|
|
12 |
|
13 |
|
14 |
benchmark_data = {
|
15 |
+
'Model': [
|
16 |
+
'TheBloke/llama3-13b', # LLaMA3
|
17 |
+
'Vikhrmodels/Vikhr-Nemo-12B', # Vikhr
|
18 |
+
'TinyLLaMA/TinyLlama-1.1B', # TinyLLaMA
|
19 |
+
'mistralai/Mistral-7B-instruct', # Mistral
|
20 |
+
'Qwen/Qwen-7B' # Qwen
|
21 |
+
],
|
22 |
+
'Creativity Score': [
|
23 |
+
37.75, # LLaMA3
|
24 |
+
46.00, # Vikhr
|
25 |
+
6.50, # TinyLLaMA
|
26 |
+
23.75, # Mistral
|
27 |
+
8.25 # Qwen
|
28 |
+
],
|
29 |
+
'Diversity Score': [
|
30 |
+
49.50, # LLaMA3
|
31 |
+
52.00, # Vikhr
|
32 |
+
14.50, # TinyLLaMA
|
33 |
+
38.50, # Mistral
|
34 |
+
15.55 # Qwen
|
35 |
+
],
|
36 |
+
'Relevance Score': [
|
37 |
+
79.25, # LLaMA3
|
38 |
+
87.50, # Vikhr
|
39 |
+
18.50, # TinyLLaMA
|
40 |
+
76.75, # Mistral
|
41 |
+
34.25 # Qwen
|
42 |
+
],
|
43 |
+
'Average Score': [
|
44 |
+
55.50, # LLaMA3
|
45 |
+
61.83, # Vikhr
|
46 |
+
13.17, # TinyLLaMA
|
47 |
+
46.33, # Mistral
|
48 |
+
19.35 # Qwen
|
49 |
+
]
|
50 |
}
|
|
|
51 |
def display_results():
|
52 |
df = pd.DataFrame(benchmark_data)
|
53 |
return df
|
|
|
61 |
headers=["Model", "Creativity Score", "Coherence Score", "Diversity Score"],
|
62 |
interactive=False
|
63 |
)
|
|
|
|
|
|
|
|
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
demo.launch()
|