[falcon] added os.makedirs(directory_path)
Browse files
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
|