From 21426e607bc686bc474b59c699460cc310fbea20 Mon Sep 17 00:00:00 2001 From: Vincent Zhao <33521738+WindsongZ@users.noreply.github.com> Date: Tue, 28 May 2024 01:23:05 +0800 Subject: [PATCH 1/3] Update gradio_multiInputs.py --- gradio_multiInputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradio_multiInputs.py b/gradio_multiInputs.py index f7ded82..426e6ad 100644 --- a/gradio_multiInputs.py +++ b/gradio_multiInputs.py @@ -4,7 +4,7 @@ import dashscope from dashscope import Generation -dashscope.api_key = 'sk-73e9b0452a7e40048495d8ac8ab1afe4' # Vincent's API key +dashscope.api_key = # Vincent's API key def response(prompt, instruction): From 71f3f6141c549291e16434a2c9d5441431f27dd6 Mon Sep 17 00:00:00 2001 From: Vincent Zhao <33521738+WindsongZ@users.noreply.github.com> Date: Tue, 28 May 2024 01:27:41 +0800 Subject: [PATCH 2/3] Update testGenius.py --- testGenius.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testGenius.py b/testGenius.py index d11c020..63fdf5f 100644 --- a/testGenius.py +++ b/testGenius.py @@ -4,8 +4,8 @@ from dashscope import Generation import dashscope import gradio as gr -# dashscope.api_key = 'sk-73e9b0452a7e40048495d8ac8ab1afe4' # Vincent's API key -dashscope.api_key = 'sk-83b8ed0ead0849ae9e63a2ae5bdbde0d' # Rayman's API key +# dashscope.api_key = # Vincent's API key +dashscope.api_key = # Rayman's API key def respond_nonStream(prompt, chat_history, instruction, model): From 646936eb80967095c52860713f073c6095d00f41 Mon Sep 17 00:00:00 2001 From: Vincent Zhao <33521738+WindsongZ@users.noreply.github.com> Date: Tue, 28 May 2024 01:27:59 +0800 Subject: [PATCH 3/3] Update testGradio.py --- testGradio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testGradio.py b/testGradio.py index 765e0ff..a3cd806 100644 --- a/testGradio.py +++ b/testGradio.py @@ -5,7 +5,7 @@ from http import HTTPStatus import dashscope from dashscope import Generation -dashscope.api_key = 'sk-73e9b0452a7e40048495d8ac8ab1afe4' # Vincent's API key +dashscope.api_key = # Vincent's API key with gr.Blocks() as demo: history = [["Hello","Hello, how can I help you?"]] @@ -56,4 +56,4 @@ with gr.Blocks() as demo: msg.submit(respond_nonStream, inputs=[msg, chatbot], outputs=[msg, chatbot]) if __name__ == "__main__": - demo.launch() \ No newline at end of file + demo.launch()