Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
|
4 |
-
|
5 |
-
#Models:
|
6 |
-
# IlyaGusev/saiga_llama3_8b
|
7 |
-
# Vikhrmodels/Vikhr-Nemo-12B-Instruct-R-21-09-24
|
8 |
-
# TinyLlama
|
9 |
-
# Google-gemma-2-27b-it
|
10 |
-
# mistralai/Mistral-Nemo-Instruct-2407
|
11 |
-
# Vikhrmodels/Vikhr-Qwen-2.5-0.5b-Instruct
|
12 |
-
|
13 |
-
|
14 |
benchmark_data = {
|
15 |
'Model': [
|
16 |
'TheBloke/llama3-13b', # LLaMA3
|
@@ -49,20 +40,22 @@ benchmark_data = {
|
|
49 |
]
|
50 |
}
|
51 |
|
52 |
-
|
53 |
def display_results():
|
54 |
df = pd.DataFrame(benchmark_data)
|
55 |
return df
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
interactive=False
|
58 |
)
|
59 |
|
60 |
-
# Button to refresh/display results
|
61 |
refresh_btn = gr.Button("Show Results")
|
62 |
refresh_btn.click(fn=display_results, outputs=output)
|
63 |
|
64 |
-
if __name__ == "__main__":
|
65 |
-
demo.launch()
|
66 |
-
|
67 |
if __name__ == "__main__":
|
68 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
|
4 |
+
# Define benchmark data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
benchmark_data = {
|
6 |
'Model': [
|
7 |
'TheBloke/llama3-13b', # LLaMA3
|
|
|
40 |
]
|
41 |
}
|
42 |
|
|
|
43 |
def display_results():
|
44 |
df = pd.DataFrame(benchmark_data)
|
45 |
return df
|
46 |
+
|
47 |
+
# Create Gradio interface
|
48 |
+
with gr.Blocks() as demo:
|
49 |
+
gr.Markdown("# Russian Language Model Benchmark Results")
|
50 |
+
|
51 |
+
# Add dataframe output
|
52 |
+
output = gr.DataFrame(
|
53 |
+
headers=list(benchmark_data.keys()),
|
54 |
interactive=False
|
55 |
)
|
56 |
|
|
|
57 |
refresh_btn = gr.Button("Show Results")
|
58 |
refresh_btn.click(fn=display_results, outputs=output)
|
59 |
|
|
|
|
|
|
|
60 |
if __name__ == "__main__":
|
61 |
demo.launch()
|