Update testGradio.py

This commit is contained in:
Vincent Zhao 2024-05-28 01:27:59 +08:00 committed by GitHub
parent 71f3f6141c
commit 646936eb80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
demo.launch()