Spaces:
Sleeping
Sleeping
Update app.py
Browse files9 unmodified lines101112131415161718199 unmodified linesmessages.append({"role": "user", "content": "message"})response = client.chat_completion(messages,max_tokens=1000 #change response length)return response['choices'][0]['message']['content'].strip()chatbot = gr.ChatInterface(respond, type="messages")chatbot.launch(debug=True)9 unmodified lines101112131415161718199 unmodified linesmessages.append({"role": "user", "content": "message"})response = client.chat_completion(messages,max_tokens=100 #change response length)return response['choices'][0]['message']['content'].strip()chatbot = gr.ChatInterface(respond, type="messages")chatbot.launch()
app.py+2-2