lunarflu HF Staff commited on
Commit
2b092c0
·
1 Parent(s): b052e2c

added [info], testing 'newgen' string in [falcon]

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -53,7 +53,12 @@ intents.message_content = True
53
 
54
  bot = commands.Bot(command_prefix='!', intents=intents)
55
 
56
-
 
 
 
 
 
57
  #---------------------------------------------------------------------------------------------------------------------------------------------
58
  @bot.event
59
  async def on_ready():
@@ -557,11 +562,11 @@ async def falcon(ctx, *, prompt: str):
557
  if await safetychecks(ctx):
558
  if ctx.channel.id == 1116089829147557999:
559
 
560
- filepath = "test1.json"
561
- os.makedirs(filepath)
562
  result = falconspace.predict(
563
  prompt, # str in 'Type an input and press Enter' Textbox component
564
- filepath, # str (filepath to JSON file) in 'parameter_9' Chatbot component
565
  "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
566
  0.8, # int | float (numeric value between 0.1 and 2.0) in 'Temperature' Slider component
567
  0.9, # int | float (numeric value between 0.1 and 0.99) in 'p (nucleus sampling)' Slider component
 
53
 
54
  bot = commands.Bot(command_prefix='!', intents=intents)
55
 
56
+ #---------------------------------------------------------------------------------------------------------------------------------------------
57
+ @bot.command()
58
+ async def info()
59
+ current_directory = os.getcwd()
60
+ temp_directory = tempfile.gettempdir()
61
+ await ctx.reply(f"current_directory={current_directory}\n temp_directory={temp_directory}")
62
  #---------------------------------------------------------------------------------------------------------------------------------------------
63
  @bot.event
64
  async def on_ready():
 
562
  if await safetychecks(ctx):
563
  if ctx.channel.id == 1116089829147557999:
564
 
565
+ #filepath = "test1.json"
566
+ #os.makedirs(filepath)
567
  result = falconspace.predict(
568
  prompt, # str in 'Type an input and press Enter' Textbox component
569
+ "newgen", # str (filepath to JSON file) in 'parameter_9' Chatbot component
570
  "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
571
  0.8, # int | float (numeric value between 0.1 and 2.0) in 'Temperature' Slider component
572
  0.9, # int | float (numeric value between 0.1 and 0.99) in 'p (nucleus sampling)' Slider component