Spaces:
Paused
Paused
Tuchuanhuhuhu
commited on
Commit
•
17c6524
1
Parent(s):
c7e1b86
temprature的取值范围为[0, 2]
Browse files
main.py
CHANGED
@@ -74,7 +74,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
|
|
74 |
#inputs, top_p, temperature, top_k, repetition_penalty
|
75 |
with gr.Accordion("arguments", open=False):
|
76 |
top_p = gr.Slider(minimum=-0, maximum=1.0, value=1.0, step=0.01,interactive=True, label="Top-p (nucleus sampling)",)
|
77 |
-
temperature = gr.Slider(minimum=-0, maximum=
|
78 |
|
79 |
txt.submit(predict, [txt, top_p, temperature, chatbot, history, systemPromptTxt], [chatbot, history, statusDisplay])
|
80 |
submitBtn.click(predict, [txt, top_p, temperature, chatbot, history, systemPromptTxt], [chatbot, history, statusDisplay], show_progress=True)
|
|
|
74 |
#inputs, top_p, temperature, top_k, repetition_penalty
|
75 |
with gr.Accordion("arguments", open=False):
|
76 |
top_p = gr.Slider(minimum=-0, maximum=1.0, value=1.0, step=0.01,interactive=True, label="Top-p (nucleus sampling)",)
|
77 |
+
temperature = gr.Slider(minimum=-0, maximum=2.0, value=1.0, step=0.01, interactive=True, label="Temperature",)
|
78 |
|
79 |
txt.submit(predict, [txt, top_p, temperature, chatbot, history, systemPromptTxt], [chatbot, history, statusDisplay])
|
80 |
submitBtn.click(predict, [txt, top_p, temperature, chatbot, history, systemPromptTxt], [chatbot, history, statusDisplay], show_progress=True)
|