OzzyGT HF staff commited on
Commit
7d1af13
1 Parent(s): 97567b1

force gradio version in spaces

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
  import spaces
3
  import torch
@@ -9,6 +11,9 @@ from huggingface_hub import hf_hub_download
9
  from controlnet_union import ControlNetModel_Union
10
  from pipeline_fill_sd_xl import StableDiffusionXLFillPipeline
11
 
 
 
 
12
  MODELS = {
13
  "RealVisXL V5.0 Lightning": "SG161222/RealVisXL_V5.0_Lightning",
14
  }
 
1
+ import os
2
+
3
  import gradio as gr
4
  import spaces
5
  import torch
 
11
  from controlnet_union import ControlNetModel_Union
12
  from pipeline_fill_sd_xl import StableDiffusionXLFillPipeline
13
 
14
+ os.system("pip uninstall -y gradio")
15
+ os.system("pip install gradio==4.42.0")
16
+
17
  MODELS = {
18
  "RealVisXL V5.0 Lightning": "SG161222/RealVisXL_V5.0_Lightning",
19
  }