Update app.py
Browse files
app.py
CHANGED
@@ -242,14 +242,15 @@ def update_input():
|
|
242 |
return en_1
|
243 |
|
244 |
|
245 |
-
EXCEL_FILE_PATH_Golden_Benchmark = "static/
|
246 |
-
EXCEL_FILE_PATH_Expert_Annotated_Dataset = "static/3450_merged_data.
|
247 |
|
248 |
|
249 |
def load_excel(EXCEL_FILE_PATH):
|
250 |
try:
|
251 |
# 读取 Excel 文件
|
252 |
-
df = pd.read_excel(EXCEL_FILE_PATH)
|
|
|
253 |
return df
|
254 |
except Exception as e:
|
255 |
return f"Error loading Excel file: {e}"
|
@@ -350,6 +351,10 @@ with gr.Blocks(title="Automated Enzyme Kinetics Extractor") as demo:
|
|
350 |
'''<h1 align="center"> Golden Benchmark Viewer with Advanced Search </h1>
|
351 |
</p>'''
|
352 |
)
|
|
|
|
|
|
|
|
|
353 |
with gr.Row():
|
354 |
# 选择搜索字段
|
355 |
column_names = get_column_names(EXCEL_FILE_PATH_Golden_Benchmark)
|
@@ -378,8 +383,12 @@ with gr.Blocks(title="Automated Enzyme Kinetics Extractor") as demo:
|
|
378 |
with gr.Tab(" LLM Enzyme Kinetics Archive (LLENKA)"):
|
379 |
gr.Markdown(
|
380 |
'''<h1 align="center"> LLM Enzyme Kinetics Archive (LLENKA) Viewer with Advanced Search </h1>
|
381 |
-
</p>
|
|
|
382 |
)
|
|
|
|
|
|
|
383 |
with gr.Row():
|
384 |
# 选择搜索字段
|
385 |
column_names = get_column_names(EXCEL_FILE_PATH_Expert_Annotated_Dataset)
|
|
|
242 |
return en_1
|
243 |
|
244 |
|
245 |
+
EXCEL_FILE_PATH_Golden_Benchmark = "static/golden benchmark.csv"
|
246 |
+
EXCEL_FILE_PATH_Expert_Annotated_Dataset = "static/3450_merged_data.csv"
|
247 |
|
248 |
|
249 |
def load_excel(EXCEL_FILE_PATH):
|
250 |
try:
|
251 |
# 读取 Excel 文件
|
252 |
+
# df = pd.read_excel(EXCEL_FILE_PATH)
|
253 |
+
df = pd.read_csv(EXCEL_FILE_PATH)
|
254 |
return df
|
255 |
except Exception as e:
|
256 |
return f"Error loading Excel file: {e}"
|
|
|
351 |
'''<h1 align="center"> Golden Benchmark Viewer with Advanced Search </h1>
|
352 |
</p>'''
|
353 |
)
|
354 |
+
gr.Markdown("""
|
355 |
+
dataset can download in [LLM-Enzyme-Kinetics-Golden-Benchmark](https://huggingface.co/datasets/jackkuo/LLM-Enzyme-Kinetics-Golden-Benchmark)
|
356 |
+
""")
|
357 |
+
|
358 |
with gr.Row():
|
359 |
# 选择搜索字段
|
360 |
column_names = get_column_names(EXCEL_FILE_PATH_Golden_Benchmark)
|
|
|
383 |
with gr.Tab(" LLM Enzyme Kinetics Archive (LLENKA)"):
|
384 |
gr.Markdown(
|
385 |
'''<h1 align="center"> LLM Enzyme Kinetics Archive (LLENKA) Viewer with Advanced Search </h1>
|
386 |
+
</p>
|
387 |
+
'''
|
388 |
)
|
389 |
+
gr.Markdown("""
|
390 |
+
dataset can be download in [LLM-Enzyme-Kinetics-Archive-LLENKA](https://huggingface.co/datasets/jackkuo/LLM-Enzyme-Kinetics-Archive-LLENKA)
|
391 |
+
""")
|
392 |
with gr.Row():
|
393 |
# 选择搜索字段
|
394 |
column_names = get_column_names(EXCEL_FILE_PATH_Expert_Annotated_Dataset)
|