Spaces:
Runtime error
Runtime error
FlawedLLM
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def run_command(cmd, shell=False):
|
|
21 |
print(f"Error executing command: {e.stderr}")
|
22 |
|
23 |
# 1. Create the conda environment
|
24 |
-
run_command("conda create -y --name unsloth_env python=3.10")
|
25 |
|
26 |
# 2. Activate the environment (Note: Requires shell=True)
|
27 |
run_command("conda activate unsloth_env", shell=True)
|
|
|
21 |
print(f"Error executing command: {e.stderr}")
|
22 |
|
23 |
# 1. Create the conda environment
|
24 |
+
run_command(["conda", "create", "-y", "--name", "unsloth_env", "python=3.10"])
|
25 |
|
26 |
# 2. Activate the environment (Note: Requires shell=True)
|
27 |
run_command("conda activate unsloth_env", shell=True)
|