File size: 631 Bytes
1797aaf 38f9e2f 1797aaf f70e4f4 1797aaf f70e4f4 38f9e2f 0930ba7 38f9e2f 0930ba7 38f9e2f 0930ba7 38f9e2f 0930ba7 1797aaf 38f9e2f 1797aaf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import gradio as gr
import pandas as pd
import json
import os
# Given list of tasks for clustering and pair classification
def display_table():
with open('data.json', 'r') as json_file:
data = json.load(json_file)
df = pd.DataFrame(data)
df = df.reset_index()
df.columns = ['Rank', 'Model', 'Score', 'Quantized Score']
html_table = df.to_html()
html_content = f"""
<style>
.wide_table {{
width: 100%;
}}
</style>
{html_table}
"""
return html_content
iface = gr.Interface(fn=display_table, live=True, inputs=[], outputs="html")
iface.launch()
|