how to generate an answer without a picture?
#4
by
ArtemSI
- opened
Hello . could you please tell me what code should i use to generate the answer to a question , but without using any picture?
Hi, thanks for your feedback, we now support plain text conversations, see the new readme or the code below.
question = 'Hello, who are you?'
response, history = model.chat(tokenizer, None, question, generation_config, history=None, return_history=True)
print(f'User: {question}')
print(f'Assistant: {response}')
question = 'Can you tell me a story?'
response, history = model.chat(tokenizer, None, question, generation_config, history=history, return_history=True)
print(f'User: {question}')
print(f'Assistant: {response}')
czczup
changed discussion status to
closed