Update app.py
Browse files241 unmodified lines24224324424524624724824925025125225325425594 unmodified lines35035135235335435522 unmodified lines378379380381382383384385241 unmodified linesreturn en_1EXCEL_FILE_PATH_Golden_Benchmark = "static/20240919_156篇金标准手工提取_v2.xlsx"EXCEL_FILE_PATH_Expert_Annotated_Dataset = "static/3450_merged_data.xlsx"def load_excel(EXCEL_FILE_PATH):try:# 读取 Excel 文件df = pd.read_excel(EXCEL_FILE_PATH)return dfexcept Exception as e:return f"Error loading Excel file: {e}"94 unmodified lines'''<h1 align="center"> Golden Benchmark Viewer with Advanced Search </h1></p>''')with gr.Row():# 选择搜索字段column_names = get_column_names(EXCEL_FILE_PATH_Golden_Benchmark)22 unmodified lineswith gr.Tab(" LLM Enzyme Kinetics Archive (LLENKA)"):gr.Markdown('''<h1 align="center"> LLM Enzyme Kinetics Archive (LLENKA) Viewer with Advanced Search </h1></p>''')with gr.Row():# 选择搜索字段column_names = get_column_names(EXCEL_FILE_PATH_Expert_Annotated_Dataset)241 unmodified lines24224324424524624724824925025125225325425525694 unmodified lines35135235335435535635735835936022 unmodified lines383384385386387388389390391392393394241 unmodified linesreturn en_1EXCEL_FILE_PATH_Golden_Benchmark = "static/golden benchmark.csv"EXCEL_FILE_PATH_Expert_Annotated_Dataset = "static/3450_merged_data.csv"def load_excel(EXCEL_FILE_PATH):try:# 读取 Excel 文件# df = pd.read_excel(EXCEL_FILE_PATH)df = pd.read_csv(EXCEL_FILE_PATH)return dfexcept Exception as e:return f"Error loading Excel file: {e}"94 unmodified lines'''<h1 align="center"> Golden Benchmark Viewer with Advanced Search </h1></p>''')gr.Markdown("""dataset can download in [LLM-Enzyme-Kinetics-Golden-Benchmark](https://huggingface.co/datasets/jackkuo/LLM-Enzyme-Kinetics-Golden-Benchmark)""")with gr.Row():# 选择搜索字段column_names = get_column_names(EXCEL_FILE_PATH_Golden_Benchmark)22 unmodified lineswith gr.Tab(" LLM Enzyme Kinetics Archive (LLENKA)"):gr.Markdown('''<h1 align="center"> LLM Enzyme Kinetics Archive (LLENKA) Viewer with Advanced Search </h1></p>''')gr.Markdown("""dataset can be download in [LLM-Enzyme-Kinetics-Archive-LLENKA](https://huggingface.co/datasets/jackkuo/LLM-Enzyme-Kinetics-Archive-LLENKA)""")with gr.Row():# 选择搜索字段column_names = get_column_names(EXCEL_FILE_PATH_Expert_Annotated_Dataset)
app.py+13-4