How to pass chat history to spaces/Qwen/Qwen2-72B-Instruct?

#4
by shakaryan - opened

from gradio_client import Client

client = Client("Qwen/Qwen2-72B-Instruct")
result = client.predict(
query="Hello!!",
history=[],
system="You are a helpful assistant.",
api_name="/model_chat"
)
print(result)

What should be passed to 'history' argument, to pass chat history to make model answers relevant

Sign up or log in to comment