Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -330,6 +330,12 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
330 |
```bash
|
331 |
git clone https://huggingface.co/spaces/flux-train/flux-lora-trainer
|
332 |
cd flux-lora-trainer
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
pip install requirements_local.txt
|
334 |
```
|
335 |
|
@@ -338,10 +344,6 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
338 |
git clone https://github.com/ostris/ai-toolkit.git
|
339 |
cd ai-toolkit
|
340 |
git submodule update --init --recursive
|
341 |
-
python3 -m venv venv
|
342 |
-
source venv/bin/activate
|
343 |
-
# .\venv\Scripts\activate on windows
|
344 |
-
# install torch first
|
345 |
pip3 install torch
|
346 |
pip3 install -r requirements.txt
|
347 |
cd ..
|
@@ -352,10 +354,11 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
352 |
huggingface-cli login
|
353 |
```
|
354 |
|
355 |
-
Now you can run FLUX LoRA Ease locally by doing a simple
|
356 |
```py
|
357 |
python app.py
|
358 |
```
|
|
|
359 |
If you prefer command line, you can run Ostris' [AI Toolkit](https://github.com/ostris/ai-toolkit) yourself directly.
|
360 |
"""
|
361 |
)
|
|
|
330 |
```bash
|
331 |
git clone https://huggingface.co/spaces/flux-train/flux-lora-trainer
|
332 |
cd flux-lora-trainer
|
333 |
+
## Optional, start a venv environment ##
|
334 |
+
python3 -m venv venv
|
335 |
+
source venv/bin/activate
|
336 |
+
# .\venv\Scripts\activate on windows
|
337 |
+
# install torch first
|
338 |
+
## End of optional ##
|
339 |
pip install requirements_local.txt
|
340 |
```
|
341 |
|
|
|
344 |
git clone https://github.com/ostris/ai-toolkit.git
|
345 |
cd ai-toolkit
|
346 |
git submodule update --init --recursive
|
|
|
|
|
|
|
|
|
347 |
pip3 install torch
|
348 |
pip3 install -r requirements.txt
|
349 |
cd ..
|
|
|
354 |
huggingface-cli login
|
355 |
```
|
356 |
|
357 |
+
Now you can run FLUX LoRA Ease locally with a UI by doing a simple
|
358 |
```py
|
359 |
python app.py
|
360 |
```
|
361 |
+
|
362 |
If you prefer command line, you can run Ostris' [AI Toolkit](https://github.com/ostris/ai-toolkit) yourself directly.
|
363 |
"""
|
364 |
)
|