Spaces:
CMLL
/
Running on Zero

CMLL commited on
Commit
ea3aa47
1 Parent(s): 7aa44af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,6 +13,7 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
13
 
14
  DESCRIPTION = """\
15
  # FulPhil-仲景中医大语言模型-ZhongJingGPT-V2-1_8b-First LLM in TCM
 
16
  致敬仲景先师,融汇古典与智能。本模型由医哲未来(FulPhil)研发,是专注于中医药领域的强大语言模型。它能够运用传统中医理论,结合现代人工智能技术,为中医研究和应用提供卓越助力。欢迎关注我们的 [GitHub主页](https://github.com/pariskang/CMLM-ZhongJing) 及模型 [ZhongJing-2-1_8b](https://huggingface.co/CMLM/ZhongJing-2-1_8b) 下载体验!
17
  Paying tribute to the ancient master Zhang Zhongjing, this model integrates classical knowledge with modern intelligence. Developed by FulPhil (Future Medicine Philosophy), it is a powerful language model focused on the field of Traditional Chinese Medicine (TCM). It employs traditional TCM theories combined with contemporary artificial intelligence technology to provide excellent support for TCM research and applications. Welcome to visit our [GitHub homepage](https://github.com/pariskang/CMLM-ZhongJing) and download the model [ZhongJing-2-1_8b-merge](https://huggingface.co/CMLM/ZhongJing-2-1_8b) for a trial experience!
18
  请注意!!!本模型不得用于任何医疗或潜在具有医疗或康养建议的任何场景,目前仍为科研测试阶段,敬请帮我们提出宝贵意见,谢谢。
@@ -21,6 +22,7 @@ Please note!!! This model should not be used for any medical purposes or scenari
21
 
22
  LICENSE = """
23
  <p/>
 
24
  ---
25
  As a derivate work of [ZhongJing-2-1_8b](https://huggingface.co/CMLM/ZhongJing-2-1_8b) by FulPhil,
26
  this demo is governed by the original [license](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/USE_POLICY.md).
@@ -77,8 +79,6 @@ def generate(
77
  outputs.append(text)
78
  yield "".join(outputs)
79
 
80
- # ... (前面的代码保持不变)
81
-
82
  chat_interface = gr.ChatInterface(
83
  fn=generate,
84
  additional_inputs=[
@@ -86,7 +86,7 @@ chat_interface = gr.ChatInterface(
86
  gr.Slider(
87
  label="Max new tokens",
88
  minimum=1,
89
- maximum=MAX_MAX_TOKENS,
90
  step=1,
91
  value=DEFAULT_MAX_NEW_TOKENS,
92
  ),
 
13
 
14
  DESCRIPTION = """\
15
  # FulPhil-仲景中医大语言模型-ZhongJingGPT-V2-1_8b-First LLM in TCM
16
+
17
  致敬仲景先师,融汇古典与智能。本模型由医哲未来(FulPhil)研发,是专注于中医药领域的强大语言模型。它能够运用传统中医理论,结合现代人工智能技术,为中医研究和应用提供卓越助力。欢迎关注我们的 [GitHub主页](https://github.com/pariskang/CMLM-ZhongJing) 及模型 [ZhongJing-2-1_8b](https://huggingface.co/CMLM/ZhongJing-2-1_8b) 下载体验!
18
  Paying tribute to the ancient master Zhang Zhongjing, this model integrates classical knowledge with modern intelligence. Developed by FulPhil (Future Medicine Philosophy), it is a powerful language model focused on the field of Traditional Chinese Medicine (TCM). It employs traditional TCM theories combined with contemporary artificial intelligence technology to provide excellent support for TCM research and applications. Welcome to visit our [GitHub homepage](https://github.com/pariskang/CMLM-ZhongJing) and download the model [ZhongJing-2-1_8b-merge](https://huggingface.co/CMLM/ZhongJing-2-1_8b) for a trial experience!
19
  请注意!!!本模型不得用于任何医疗或潜在具有医疗或康养建议的任何场景,目前仍为科研测试阶段,敬请帮我们提出宝贵意见,谢谢。
 
22
 
23
  LICENSE = """
24
  <p/>
25
+
26
  ---
27
  As a derivate work of [ZhongJing-2-1_8b](https://huggingface.co/CMLM/ZhongJing-2-1_8b) by FulPhil,
28
  this demo is governed by the original [license](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/CMLM/ZhongJing-2-1_8b/blob/main/USE_POLICY.md).
 
79
  outputs.append(text)
80
  yield "".join(outputs)
81
 
 
 
82
  chat_interface = gr.ChatInterface(
83
  fn=generate,
84
  additional_inputs=[
 
86
  gr.Slider(
87
  label="Max new tokens",
88
  minimum=1,
89
+ maximum=MAX_MAX_NEW_TOKENS,
90
  step=1,
91
  value=DEFAULT_MAX_NEW_TOKENS,
92
  ),