Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,13 +11,13 @@ def demo(project_TCGA, output_language="Chinese"):
|
|
| 11 |
output1 = f"✍️ 简称:{project_TCGA}\n❤️ 中文全称:{name_Chinese}\n💛 英文全称:{name_English}"
|
| 12 |
system_instruction = f"您是系统生物学、流行病学、癌症研究和精准医学领域的专家,对{name_Chinese}有着深刻的洞察。"
|
| 13 |
prompt_template = f"""
|
| 14 |
-
您的任务是深入分析{name_Chinese}这
|
| 15 |
""".strip()
|
| 16 |
else:
|
| 17 |
output1 = f"✍️ Abbreviation: {project_TCGA}\n❤️ Full name in Chinese: {name_Chinese}\n💛 Full Name in English: {name_English}"
|
| 18 |
system_instruction = f"You are an expert in the fields of systems biology, epidemiology, cancer research, and precision medicine, with deep insights into {name_English}."
|
| 19 |
prompt_template = f"""
|
| 20 |
-
Your task is to analyze in depth the
|
| 21 |
""".strip()
|
| 22 |
|
| 23 |
try:
|
|
@@ -105,7 +105,8 @@ print([k for k in project_name_TCGA.keys()])
|
|
| 105 |
|
| 106 |
# 支持 Markdown 和 HTML 内容格式:
|
| 107 |
# Abbreviations, Full Names and Descriptions of All Cancer Types Covered by TCGA Project.
|
| 108 |
-
desc = """<h1 align="center" style="font-family: Latin Modern Math, sans-serif; font-size: 22px; color: #00FF7F;">🎉 TCGA
|
|
|
|
| 109 |
outputs = [
|
| 110 |
gr.Textbox(
|
| 111 |
label="🔎 1. 所查询的癌症类型的全称", show_copy_button=True
|
|
|
|
| 11 |
output1 = f"✍️ 简称:{project_TCGA}\n❤️ 中文全称:{name_Chinese}\n💛 英文全称:{name_English}"
|
| 12 |
system_instruction = f"您是系统生物学、流行病学、癌症研究和精准医学领域的专家,对{name_Chinese}有着深刻的洞察。"
|
| 13 |
prompt_template = f"""
|
| 14 |
+
您的任务是深入分析{name_Chinese}这种复杂疾病的表型和有效预防,并深入探索其发病和进展中涉及的关键的分子机制与信号通路。让我们一步一步地思考。
|
| 15 |
""".strip()
|
| 16 |
else:
|
| 17 |
output1 = f"✍️ Abbreviation: {project_TCGA}\n❤️ Full name in Chinese: {name_Chinese}\n💛 Full Name in English: {name_English}"
|
| 18 |
system_instruction = f"You are an expert in the fields of systems biology, epidemiology, cancer research, and precision medicine, with deep insights into {name_English}."
|
| 19 |
prompt_template = f"""
|
| 20 |
+
Your task is to analyze in depth the phenotype and effective prevention of {name_English}, and to explore in depth the key molecular mechanisms and signaling pathways involved in its initiation and progression. Let's think step by step.
|
| 21 |
""".strip()
|
| 22 |
|
| 23 |
try:
|
|
|
|
| 105 |
|
| 106 |
# 支持 Markdown 和 HTML 内容格式:
|
| 107 |
# Abbreviations, Full Names and Descriptions of All Cancer Types Covered by TCGA Project.
|
| 108 |
+
# desc = """<h1 align="center" style="font-family: Latin Modern Math, sans-serif; font-size: 22px; color: #00FF7F;">🎉 Abbreviations, Full Names and Descriptions of All Cancer Types Covered by TCGA Project 🧬</h1>"""
|
| 109 |
+
desc = """<h1 align="center" style="font-family: KaiTi, sans-serif; font-size: 22px; color: #00FF7F;">🎉 TCGA 项目涵盖的所有癌症类型的缩写、全称和描述 🧬</h1>"""
|
| 110 |
outputs = [
|
| 111 |
gr.Textbox(
|
| 112 |
label="🔎 1. 所查询的癌症类型的全称", show_copy_button=True
|