Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
%cd /content
|
| 2 |
+
!git clone -b dev https://github.com/camenduru/PhotoMaker-hf
|
| 3 |
+
%cd /content/PhotoMaker-hf
|
| 4 |
+
|
| 5 |
+
!pip install -q torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118 -U
|
| 6 |
+
!pip install -q xformers==0.0.20 diffusers accelerate einops onnxruntime-gpu omegaconf gradio
|
| 7 |
+
|
| 8 |
+
!python app.py
|