Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
86f6345cfe
@ -4,7 +4,7 @@ import dashscope
|
|||||||
from dashscope import Generation
|
from dashscope import Generation
|
||||||
|
|
||||||
|
|
||||||
dashscope.api_key = 'sk-73e9b0452a7e40048495d8ac8ab1afe4' # Vincent's API key
|
dashscope.api_key = # Vincent's API key
|
||||||
|
|
||||||
|
|
||||||
def pross_instruction(system, rag_dict):
|
def pross_instruction(system, rag_dict):
|
||||||
|
@ -4,8 +4,8 @@ from dashscope import Generation
|
|||||||
import dashscope
|
import dashscope
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
|
|
||||||
# dashscope.api_key = 'sk-73e9b0452a7e40048495d8ac8ab1afe4' # Vincent's API key
|
# dashscope.api_key = # Vincent's API key
|
||||||
dashscope.api_key = 'sk-83b8ed0ead0849ae9e63a2ae5bdbde0d' # Rayman's API key
|
dashscope.api_key = # Rayman's API key
|
||||||
|
|
||||||
|
|
||||||
def respond_nonStream(prompt, chat_history, instruction, model):
|
def respond_nonStream(prompt, chat_history, instruction, model):
|
||||||
|
@ -5,7 +5,7 @@ from http import HTTPStatus
|
|||||||
import dashscope
|
import dashscope
|
||||||
from dashscope import Generation
|
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:
|
with gr.Blocks() as demo:
|
||||||
history = [["Hello","Hello, how can I help you?"]]
|
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])
|
msg.submit(respond_nonStream, inputs=[msg, chatbot], outputs=[msg, chatbot])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
demo.launch()
|
demo.launch()
|
||||||
|
Loading…
Reference in New Issue
Block a user