Spaces:
Runtime error
Runtime error
force gradio version in spaces
Browse files
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 |
}
|