Spaces:
Runtime error
Runtime error
Commit
·
fdbf2dd
1
Parent(s):
5a991b2
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ except Exception:
|
|
25 |
# Windows
|
26 |
logger.warning("Windows, cant run time.tzset()")
|
27 |
|
28 |
-
model_name = "wangrongsheng/IvyGPT-35"
|
29 |
-
|
30 |
|
31 |
RETRY_FLAG = False
|
32 |
|
@@ -184,19 +184,19 @@ def retry_last_answer(
|
|
184 |
)
|
185 |
|
186 |
|
187 |
-
with gr.Blocks(title="
|
188 |
# gr.HTML("""<h1 align="center">ChatGLM2-6B-int4</h1>""")
|
189 |
gr.HTML(
|
190 |
-
"""<h1 align="center">IvyGPT医疗对话大模型</h1>"""
|
191 |
)
|
192 |
|
193 |
with gr.Accordion("🎈 Info", open=False):
|
194 |
_ = f"""
|
195 |
-
## 欢迎体验IvyGPT
|
196 |
|
197 |
近期在通用领域中出现的大语言模型(LLMs),例如ChatGPT,在遵循指令和产生类人响应方面表现出了显著的成功。然而,这样的大型语言模型并没有被广泛应用于医学领域,导致响应的准确性较差,无法提供关于医学诊断、药物等合理的建议。IvyGPT是一个医疗大语言模型,它在高质量的医学问答数据上进行了监督微调,并使用人类反馈的强化学习进行了训练。
|
198 |
|
199 |
-
[模型下载地址](https://huggingface.co/wangrongsheng/
|
200 |
"""
|
201 |
gr.Markdown(dedent(_))
|
202 |
chatbot = gr.Chatbot()
|
@@ -326,4 +326,4 @@ with gr.Blocks(title="IvyGPT", theme=gr.themes.Soft(text_size="sm")) as demo:
|
|
326 |
# leave one for api access
|
327 |
# reduce to 5 if OOM occurs to often
|
328 |
|
329 |
-
demo.queue(concurrency_count=
|
|
|
25 |
# Windows
|
26 |
logger.warning("Windows, cant run time.tzset()")
|
27 |
|
28 |
+
#model_name = "wangrongsheng/IvyGPT-35"
|
29 |
+
model_name = "wangrongsheng/Med-InternLM"
|
30 |
|
31 |
RETRY_FLAG = False
|
32 |
|
|
|
184 |
)
|
185 |
|
186 |
|
187 |
+
with gr.Blocks(title="Med InternLM 7B", theme=gr.themes.Soft(text_size="sm")) as demo:
|
188 |
# gr.HTML("""<h1 align="center">ChatGLM2-6B-int4</h1>""")
|
189 |
gr.HTML(
|
190 |
+
"""<h1 align="center">IvyGPT-InternLM7B医疗对话大模型</h1>"""
|
191 |
)
|
192 |
|
193 |
with gr.Accordion("🎈 Info", open=False):
|
194 |
_ = f"""
|
195 |
+
## 欢迎体验IvyGPT-InternLM7B
|
196 |
|
197 |
近期在通用领域中出现的大语言模型(LLMs),例如ChatGPT,在遵循指令和产生类人响应方面表现出了显著的成功。然而,这样的大型语言模型并没有被广泛应用于医学领域,导致响应的准确性较差,无法提供关于医学诊断、药物等合理的建议。IvyGPT是一个医疗大语言模型,它在高质量的医学问答数据上进行了监督微调,并使用人类反馈的强化学习进行了训练。
|
198 |
|
199 |
+
[模型下载地址](https://huggingface.co/wangrongsheng/Med-InternLM)
|
200 |
"""
|
201 |
gr.Markdown(dedent(_))
|
202 |
chatbot = gr.Chatbot()
|
|
|
326 |
# leave one for api access
|
327 |
# reduce to 5 if OOM occurs to often
|
328 |
|
329 |
+
demo.queue(concurrency_count=3, max_size=30).launch(debug=True)
|