Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,28 @@ HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
|
12 |
# Apollo system prompt
|
13 |
SYSTEM_PROMPT = "You are Apollo, a multilingual medical model. You communicate with people and assist them."
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
# Apollo model options
|
16 |
APOLLO_MODELS = {
|
17 |
"Apollo": [
|
@@ -292,6 +314,7 @@ with gr.Blocks(css=css) as demo:
|
|
292 |
examples=examples,
|
293 |
inputs=user_input
|
294 |
)
|
|
|
295 |
|
296 |
if __name__ == "__main__":
|
297 |
demo.launch()
|
|
|
12 |
# Apollo system prompt
|
13 |
SYSTEM_PROMPT = "You are Apollo, a multilingual medical model. You communicate with people and assist them."
|
14 |
|
15 |
+
LICENSE = """
|
16 |
+
<div style="font-family: monospace; white-space: pre; margin-top: 20px; line-height: 1.2;">
|
17 |
+
@misc{wang2024apollo,
|
18 |
+
title={Apollo: Lightweight Multilingual Medical LLMs towards Democratizing Medical AI to 6B People},
|
19 |
+
author={Xidong Wang and Nuo Chen and Junyin Chen and Yan Hu and Yidong Wang and Xiangbo Wu and Anningzhe Gao and Xiang Wan and Haizhou Li and Benyou Wang},
|
20 |
+
year={2024},
|
21 |
+
eprint={2403.03640},
|
22 |
+
archivePrefix={arXiv},
|
23 |
+
primaryClass={cs.CL}
|
24 |
+
}
|
25 |
+
@misc{zheng2024efficientlydemocratizingmedicalllms,
|
26 |
+
title={Efficiently Democratizing Medical LLMs for 50 Languages via a Mixture of Language Family Experts},
|
27 |
+
author={Guorui Zheng and Xidong Wang and Juhao Liang and Nuo Chen and Yuping Zheng and Benyou Wang},
|
28 |
+
year={2024},
|
29 |
+
eprint={2410.10626},
|
30 |
+
archivePrefix={arXiv},
|
31 |
+
primaryClass={cs.CL},
|
32 |
+
url={https://arxiv.org/abs/2410.10626},
|
33 |
+
}
|
34 |
+
</div>
|
35 |
+
"""
|
36 |
+
|
37 |
# Apollo model options
|
38 |
APOLLO_MODELS = {
|
39 |
"Apollo": [
|
|
|
314 |
examples=examples,
|
315 |
inputs=user_input
|
316 |
)
|
317 |
+
gr.HTML(LICENSE)
|
318 |
|
319 |
if __name__ == "__main__":
|
320 |
demo.launch()
|