dhruv4023 commited on
Commit
0988a94
1 Parent(s): f37ceb5

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (3) hide show
  1. CreateEnv.ps1 +20 -8
  2. ReadME.md +3 -4
  3. requirements.txt +1 -1
CreateEnv.ps1 CHANGED
@@ -1,15 +1,27 @@
1
- # Set the project directory and virtual environment name
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
9
- Write-Host "Creating virtual environment..."
10
  python -m venv $venvName
11
  }
12
- Write-Host "Activate venv"
13
- & venv\Scripts\Activate.ps1
 
 
 
 
 
 
14
  Write-Host "Installing dependencies..."
15
- python -m pip install -r "requirements.txt"
 
 
 
 
 
 
 
1
+ # Set the project directory and Virtual Environment name
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
9
+ Write-Host "Creating Virtual Environment..."
10
  python -m venv $venvName
11
  }
12
+
13
+ Write-Host "+--------------------------------------------------------------------------------------+"
14
+ Write-Host "Activating Virtual Environment..."
15
+
16
+ & .\.venv\Scripts\Activate.ps1
17
+
18
+ Write-Host "+--------------------------------------------------------------------------------------+"
19
+ Write-Host "Virtual Environment activated"
20
  Write-Host "Installing dependencies..."
21
+ Write-Host "+--------------------------------------------------------------------------------------+"
22
+
23
+ python -m pip install -r "requirements.txt"
24
+
25
+ Write-Host "+--------------------------------------------------------------------------------------+"
26
+ Write-Host "All modules installed successfully"
27
+ Write-Host "+--------------------------------------------------------------------------------------+"
ReadME.md CHANGED
@@ -22,19 +22,18 @@
22
  ### Option 2: Manual Setup
23
  - Create a virtual environment:
24
  ```bash
25
- python -m venv venv
26
  ```
27
  - Activate virtual environment:
28
  ```bash
29
- venv\Scripts\Activate.ps1
30
  ```
31
  - Install Python modules:
32
  ```bash
33
  python -m pip install -r "requirements.txt"
34
  ```
35
  - Create folders:
36
- 1. Outputs
37
- 2. Models (if you want to download manually) (Not necessary)
38
 
39
  ## References
40
  - [YouTube Video Reference](https://www.youtube.com/watch?v=dXxQ0LR-3Hg&t=123s)
 
22
  ### Option 2: Manual Setup
23
  - Create a virtual environment:
24
  ```bash
25
+ python -m venv .venv
26
  ```
27
  - Activate virtual environment:
28
  ```bash
29
+ .venv\Scripts\Activate.ps1
30
  ```
31
  - Install Python modules:
32
  ```bash
33
  python -m pip install -r "requirements.txt"
34
  ```
35
  - Create folders:
36
+ - Models (if you want to download manually) (Not necessary)
 
37
 
38
  ## References
39
  - [YouTube Video Reference](https://www.youtube.com/watch?v=dXxQ0LR-3Hg&t=123s)
requirements.txt CHANGED
@@ -7,7 +7,7 @@ pypdf==3.17.3
7
 
8
  # embedding
9
  InstructorEmbedding==1.0.1
10
- torch==2.2.1
11
  tqdm==4.66.2
12
  sentence-transformers==2.2.2
13
  faiss-cpu
 
7
 
8
  # embedding
9
  InstructorEmbedding==1.0.1
10
+ torch==2.2.2
11
  tqdm==4.66.2
12
  sentence-transformers==2.2.2
13
  faiss-cpu