Spaces:
Sleeping
Sleeping
Update app.py
Browse files20 unmodified lines21222324252627282920 unmodified lines):token = messages.choices[0].delta.contentresponse += token#print(response["choices"][0]["message"]["content"].strip())yield response["choices"][0]["message"]["content"].strip()def random_message(message, history):choices = ["try again later", "isn't looking good for you", "perhaps", "maybe", "doubtful", "yes", "no", "without a doubt", "most likely", "signs point to yes", "it is certain", "my sources say no", "reply hazy, try again"]20 unmodified lines21222324252627282920 unmodified lines):token = messages.choices[0].delta.contentresponse += tokenyield response#print(response["choices"][0]["message"]["content"].strip())def random_message(message, history):choices = ["try again later", "isn't looking good for you", "perhaps", "maybe", "doubtful", "yes", "no", "without a doubt", "most likely", "signs point to yes", "it is certain", "my sources say no", "reply hazy, try again"]
app.py+2-2