Spaces:
Sleeping
Sleeping
Synced repo using 'sync_with_huggingface' Github Action
Browse files- CreateEnv.ps1 +11 -6
CreateEnv.ps1
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
$venvName = ".venv"
|
3 |
|
4 |
# Check if the Virtual Environment folder exists
|
5 |
-
$venvExists = Test-Path
|
6 |
|
7 |
if (-not $venvExists) {
|
8 |
# Create Virtual Environment if it doesn't exist
|
@@ -20,8 +20,13 @@ Write-Host "Virtual Environment activated"
|
|
20 |
Write-Host "Installing dependencies..."
|
21 |
Write-Host "+--------------------------------------------------------------------------------------+"
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
Write-Host "+--------------------------------------------------------------------------------------+"
|
26 |
-
Write-Host "All modules installed successfully"
|
27 |
-
Write-Host "+--------------------------------------------------------------------------------------+"
|
|
|
|
|
|
|
|
|
|
|
|
2 |
$venvName = ".venv"
|
3 |
|
4 |
# Check if the Virtual Environment folder exists
|
5 |
+
$venvExists = Test-Path $venvName
|
6 |
|
7 |
if (-not $venvExists) {
|
8 |
# Create Virtual Environment if it doesn't exist
|
|
|
20 |
Write-Host "Installing dependencies..."
|
21 |
Write-Host "+--------------------------------------------------------------------------------------+"
|
22 |
|
23 |
+
try {
|
24 |
+
python -m pip install -r "requirements.txt"
|
25 |
+
Write-Host "+--------------------------------------------------------------------------------------+"
|
26 |
+
Write-Host "All modules installed successfully"
|
27 |
+
Write-Host "+--------------------------------------------------------------------------------------+"
|
28 |
+
} catch {
|
29 |
+
Write-Host "An error occurred while installing modules: $_"
|
30 |
+
Write-Host "Some modules might not be installed correctly."
|
31 |
+
Write-Host "+--------------------------------------------------------------------------------------+"
|
32 |
+
}
|