Spaces:
Runtime error
Runtime error
Update app.py
Browse files28 unmodified lines293031323334353637383928 unmodified lines):token = messages.choices[0].delta.contentresponse += token# change length using max_tokensprint(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"]28 unmodified lines2930313233343536373839404128 unmodified lines):token = messages.choices[0].delta.contentresponse += tokenyield response['choices'][0]['message']['content'].strip()# change length using max_tokensprint(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