Spaces:
Sleeping
Sleeping
Update app.py
Browse files20 unmodified lines2122232425262728293020 unmodified linesmax_tokens = 100,stream = True,):token = delta.get("choices", [{}])[0].get("delta", {}).get("content", "")response += tokenyield responsechatbot = gr.ChatInterface(respond, type = "messages")chatbot.launch(debug = True)20 unmodified lines2122232425262728293020 unmodified linesmax_tokens = 100,stream = True,):token = messages.choices[0].delta.contentresponse += tokenyield responsechatbot = gr.ChatInterface(respond, type = "messages")chatbot.launch()
app.py+2-2