README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Leffa Project
|
| 2 |
+
|
| 3 |
+
## Steps to Access and Run Files from the Hugging Face Repository
|
| 4 |
+
|
| 5 |
+
### 1. Open VS Code
|
| 6 |
+
Open **Visual Studio Code** on your computer.
|
| 7 |
+
|
| 8 |
+
### 2. Clone the Repository
|
| 9 |
+
- Open the **VS Code terminal**:
|
| 10 |
+
- Press `Ctrl + ~` on **Windows/Linux**
|
| 11 |
+
- Press `Cmd + ~` on **macOS**
|
| 12 |
+
- Run the following command to clone the repository:
|
| 13 |
+
```bash
|
| 14 |
+
git clone https://huggingface.co/dhairya16/leffa.git
|
| 15 |
+
cd leffa
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
### 3. Open the Project in VS Code
|
| 19 |
+
- In the **VS Code terminal**, run:
|
| 20 |
+
```bash
|
| 21 |
+
code .
|
| 22 |
+
```
|
| 23 |
+
This will open the `leffa` folder in VS Code.
|
| 24 |
+
|
| 25 |
+
### 4. Open app.py and test.py
|
| 26 |
+
- In VS Code, go to the **Explorer**:
|
| 27 |
+
- Press `Ctrl + Shift + E`
|
| 28 |
+
- Locate and open `app.py`.
|
| 29 |
+
- Locate and open `test.py`.
|
| 30 |
+
|
| 31 |
+
### 5. Run test.py in VS Code Terminal
|
| 32 |
+
- Open the **VS Code terminal**:
|
| 33 |
+
- Press `Ctrl + ~`
|
| 34 |
+
- Run the following command to execute `test.py`:
|
| 35 |
+
```bash
|
| 36 |
+
python test.py
|
| 37 |
+
```
|
| 38 |
+
- If you're using **unittest**, run:
|
| 39 |
+
```bash
|
| 40 |
+
python -m unittest test.py
|
| 41 |
+
```
|
| 42 |
+
- If you're using **pytest**, run:
|
| 43 |
+
```bash
|
| 44 |
+
pytest test.py
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
---
|
| 48 |
+
|
| 49 |
+
- Make sure you have the required dependencies installed in your environment.
|
| 50 |
+
- If you don't have `pytest` or `unittest` installed, use:
|
| 51 |
+
```bash
|
| 52 |
+
pip install pytest
|
| 53 |
+
```
|
| 54 |
+
|