Philipp Allgeuer
commited on
Commit
·
1771de5
1
Parent(s):
d9dd028
Make note about pip vs conda based PyTorch (makes a difference!)
Browse files
README.md
CHANGED
|
@@ -29,10 +29,10 @@ To run the Gradio space locally, you first create a sandboxed Python 3.10 enviro
|
|
| 29 |
python -m venv .venv # <-- Python 3.10
|
| 30 |
source .venv/bin/activate
|
| 31 |
# OR...
|
| 32 |
-
conda create -n novic_spaces python=3.10
|
| 33 |
conda activate novic_spaces
|
| 34 |
```
|
| 35 |
-
Then install `gradio` and any further requirements:
|
| 36 |
```bash
|
| 37 |
pip install gradio==5.35.0 -r requirements.txt
|
| 38 |
```
|
|
|
|
| 29 |
python -m venv .venv # <-- Python 3.10
|
| 30 |
source .venv/bin/activate
|
| 31 |
# OR...
|
| 32 |
+
conda create -y -n novic_spaces python=3.10
|
| 33 |
conda activate novic_spaces
|
| 34 |
```
|
| 35 |
+
Then install `gradio` and any further requirements (**Note:** A pip-based install of `torch` is actually numerically different than a conda-based install of `pytorch`, which matters for the conda-based pretrained models, but for Hugging Face spaces we do not really have another choice):
|
| 36 |
```bash
|
| 37 |
pip install gradio==5.35.0 -r requirements.txt
|
| 38 |
```
|