Spaces:
Runtime error
Runtime error
Update app.py
Browse files28 unmodified lines293031323334353637363839404128 unmodified lines ): token = messages.choices[0].delta.content response += token
yield response['choices'][0]['message']['content'].strip() # change length using max_tokens
print(response['choices'][0]['message']['content'].strip()) yield response['choices'][0]['message']['content'].strip() def random_message(message, history): choices = ["yes.", "no.", "it is certain","without a doubt","outlook good","ask again later", "better not tell you now","very doubtful","don't count on it","my sources say no","outlook not so good","very doubtful","reply hazy, try again", "cannot predict now"]app.py+3-1