Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import pandas as pd | |
| file1 = 'hallucination.csv' | |
| df1 = pd.read_csv(file1) | |
| def show_hallucination_leaderboard(): | |
| return df1 | |
| with gr.Blocks() as demo: | |
| gr.Markdown( | |
| """ | |
| # Ranking of Large Language Models' Hallucination Control Ability in Chinese-language Contexts / 大语言模型幻觉控制能力排行榜 | |
| by Zhenhui(Jack) Jiang<sup>1</sup>, Yi Lu<sup>1</sup>, Yifan Wu<sup>1</sup>, Haozhe Xu<sup>2</sup>, Zhengyu Wu<sup>1</sup>, Jiaxin Li<sup>1</sup> / 蒋镇辉<sup>1</sup>,鲁艺<sup>1</sup>,吴轶凡<sup>1</sup>,徐昊哲<sup>2</sup>,武正昱<sup>1</sup>,李佳欣<sup>1</sup> | |
| <br><sup>1</sup>香港大学经管学院,<sup>2</sup>西安交通大学管理学院 | |
| """) | |
| with gr.Tab("🏅 模型幻觉控制能力排行榜"): | |
| text_input = None | |
| text_output = gr.DataFrame(value=show_hallucination_leaderboard(), | |
| label='Leaderboard', | |
| interactive=False, | |
| wrap=True) | |
| demo.launch(share=True) |