lunarflu HF Staff commited on
Commit
694579a
·
1 Parent(s): 66e4610

[falcon] bugfix

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -573,7 +573,6 @@ async def falcon(ctx, *, prompt: str):
573
  global chathistory
574
 
575
  if chathistory is not None: # This handles all subsequent discussions/prompts to the chatbot/model
576
- prompt = "Nice, thanks!" # adjust this for every other prompt
577
  instructions = "The following is a conversation between a highly knowledgeable and intelligent AI assistant, called Falcon, and a human user, called User. In the following interactions, User and Falcon will converse in natural language, and Falcon will answer User's questions. Falcon was built to be respectful, polite and inclusive. Falcon was built by the Technology Innovation Institute in Abu Dhabi. Falcon will never decline to answer a question, and always attempts to give an answer that User would be satisfied with. It knows a lot, and always tells the truth. The conversation begins."
578
  job = client.submit(prompt, chathistory, instructions, 0.8, 0.9, fn_index=1) # This is not blocking
579
  while job.done() == False:
 
573
  global chathistory
574
 
575
  if chathistory is not None: # This handles all subsequent discussions/prompts to the chatbot/model
 
576
  instructions = "The following is a conversation between a highly knowledgeable and intelligent AI assistant, called Falcon, and a human user, called User. In the following interactions, User and Falcon will converse in natural language, and Falcon will answer User's questions. Falcon was built to be respectful, polite and inclusive. Falcon was built by the Technology Innovation Institute in Abu Dhabi. Falcon will never decline to answer a question, and always attempts to give an answer that User would be satisfied with. It knows a lot, and always tells the truth. The conversation begins."
577
  job = client.submit(prompt, chathistory, instructions, 0.8, 0.9, fn_index=1) # This is not blocking
578
  while job.done() == False: