17 unmodified lines181920212122232417 unmodified lines ): token = message.choices[0].delta.content response += token yield response['choices'][0]['message']['content'].strip() yield response chatbot = gr.ChatInterface(respond, type = "messages")