From 752f2b33a0e99a60959a94b459bae29aedbd520c Mon Sep 17 00:00:00 2001 From: Vincent Zhao <33521738+WindsongZ@users.noreply.github.com> Date: Tue, 7 May 2024 21:26:36 +0800 Subject: [PATCH] Update streamlit_app.py --- streamlit_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/streamlit_app.py b/streamlit_app.py index acbe1d0..d36a834 100644 --- a/streamlit_app.py +++ b/streamlit_app.py @@ -104,7 +104,9 @@ def respond_nonStream(prompt, instruction): response = Generation.call(model="qwen-turbo", messages=messages, result_format='message', # 设置输出为'message'格式 - ) + temperature=1, + top_p=0.8, + top_k=50) if response.status_code == HTTPStatus.OK: return response.output.choices[0]['message']['content'] else: