mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
added shell support
This commit is contained in:
parent
a9c6026ddf
commit
a7a7e6a315
3
app.py
3
app.py
@ -581,8 +581,9 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
||||
|
||||
if language=="python":
|
||||
return self.execute_python(code, discussion_id, message_id)
|
||||
elif language=="bash":
|
||||
elif language in ["bash","shell","cmd","powershell"]:
|
||||
return self.execute_bash(code, discussion_id, message_id)
|
||||
return {"output": "Unsupported language", "execution_time": 0}
|
||||
|
||||
def copy_files(self, src, dest):
|
||||
for item in os.listdir(src):
|
||||
|
Loading…
Reference in New Issue
Block a user