lunarflu HF Staff commited on
Commit
fd771c3
·
1 Parent(s): e479256

[falcon] falcon.predict >>> falconspace.predict (doesn't clash with command name)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ DISCORD_TOKEN = os.environ.get("GRADIOTEST_TOKEN", None)
46
 
47
  df = Client("huggingface-projects/IF", GRADIOTEST_TOKEN)
48
  jojogan = Client("akhaliq/JoJoGAN", GRADIOTEST_TOKEN)
49
- falcon = Client("https://huggingfaceh4-falcon-chat.hf.space/")
50
 
51
  intents = discord.Intents.default()
52
  intents.message_content = True
@@ -558,7 +558,7 @@ async def falcon(ctx, *, prompt: str):
558
  if ctx.channel.id == 1116089829147557999:
559
 
560
  filepath = "new.json"
561
- result = falcon.predict(
562
  prompt, # str in 'Type an input and press Enter' Textbox component
563
  filepath, # str (filepath to JSON file) in 'parameter_9' Chatbot component
564
  "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.", # str in 'Instructions' Textbox component
 
46
 
47
  df = Client("huggingface-projects/IF", GRADIOTEST_TOKEN)
48
  jojogan = Client("akhaliq/JoJoGAN", GRADIOTEST_TOKEN)
49
+ falconspace = Client("https://huggingfaceh4-falcon-chat.hf.space/")
50
 
51
  intents = discord.Intents.default()
52
  intents.message_content = True
 
558
  if ctx.channel.id == 1116089829147557999:
559
 
560
  filepath = "new.json"
561
+ result = falconspace.predict(
562
  prompt, # str in 'Type an input and press Enter' Textbox component
563
  filepath, # str (filepath to JSON file) in 'parameter_9' Chatbot component
564
  "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.", # str in 'Instructions' Textbox component