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

[falcon] added os.makedirs(directory_path)

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -558,6 +558,7 @@ async def falcon(ctx, *, prompt: str):
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
 
558
  if ctx.channel.id == 1116089829147557999:
559
 
560
  filepath = "new.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