Spaces:
Sleeping
Sleeping
Update app.py
Browse files21 unmodified lines22232425262728293031323334353621 unmodified lines# temp = between 0-2# top-p = between 0-1):token = messages.choices[0].delta.contentif token:response += tokenyield response#def random_message(message, history):#choices = ["it is likely", "absolutely not", "try again", "without a doubt", "outlook good", "signs point to it", "very unlikely", "quite doubtful"]#chat_answer = random.choice(choices)#return chat_answerchatbot = gr.ChatInterface(respond, type = "messages")21 unmodified lines22232425262728293031323334353621 unmodified lines# temp = between 0-2# top-p = between 0-1):token = message.choices[0].delta.contentif token:response += tokenyield responsedef random_message(message, history):choices = ["it is likely", "absolutely not", "try again", "without a doubt", "outlook good", "signs point to it", "very unlikely", "quite doubtful"]chat_answer = random.choice(choices)return chat_answerchatbot = gr.ChatInterface(respond, type = "messages")
app.py+5-5