AlekseyCalvin commited on
Commit
3b04b77
·
verified ·
1 Parent(s): 5dd858a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
  import numpy as np
3
  import spaces
@@ -9,7 +11,9 @@ from PIL import Image
9
  from diffusers import FluxKontextPipeline
10
  from diffusers.utils import load_image, peft_utils
11
  from huggingface_hub import hf_hub_download, HfFileSystem, ModelCard
 
12
  from safetensors.torch import load_file
 
13
  import requests
14
  import re
15
 
 
1
+ import os
2
+ os.system('pip install --upgrade --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu126 "torch<2.9" spaces')
3
  import gradio as gr
4
  import numpy as np
5
  import spaces
 
11
  from diffusers import FluxKontextPipeline
12
  from diffusers.utils import load_image, peft_utils
13
  from huggingface_hub import hf_hub_download, HfFileSystem, ModelCard
14
+ from huggingface_hub import snapshot_download
15
  from safetensors.torch import load_file
16
+ import tempfile
17
  import requests
18
  import re
19