Merge branch 'master' of https://github.com/Okabe-Rintarou-0/chatgpt_academic into Okabe-Rintarou-0-master
This commit is contained in:
commit
5f771d8acf
1
main.py
1
main.py
@ -84,6 +84,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
|
||||
can_cancel_events.append(submitBtn.click(**predict_args))
|
||||
submitBtn.click(**empty_txt_args)
|
||||
resetBtn.click(lambda: ([], [], "已重置"), None, [chatbot, history, statusDisplay])
|
||||
stopBtn.click(fn=None, inputs=None, outputs=None, cancels=[submit_event])
|
||||
for k in functional:
|
||||
click_handle = functional[k]["Button"].click(predict,
|
||||
[txt, top_p, temperature, chatbot, history, system_prompt, gr.State(True), gr.State(k)], [chatbot, history, statusDisplay], show_progress=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user