Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,18 +8,17 @@ current_model = models[0]
|
|
8 |
|
9 |
|
10 |
#text_gen1=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
11 |
-
text_gen1=gr.load("spaces/Yntec/prompt-extend")
|
12 |
#text_gen1=gr.Interface.load("spaces/daspartho/prompt-extend")
|
13 |
#text_gen1=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
14 |
|
15 |
models2=[
|
16 |
-
gr.load(f"models/{models[0]}",live=False,preprocess=True, postprocess=False),
|
17 |
-
gr.load(f"models/{models[1]}",live=False,preprocess=True, postprocess=False),
|
18 |
-
gr.load(f"models/{models[2]}",live=False,preprocess=True, postprocess=False),
|
19 |
-
gr.load(f"models/{models[3]}",live=False,preprocess=True, postprocess=False),
|
20 |
-
gr.load(f"models/{models[4]}",live=False,preprocess=True, postprocess=False),
|
21 |
-
gr.load(f"models/{models[5]}",live=False,preprocess=True, postprocess=False),
|
22 |
-
|
23 |
#Because there's a model 0, to know the number of models you add 1 to {models[n]}
|
24 |
]
|
25 |
|
|
|
8 |
|
9 |
|
10 |
#text_gen1=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
11 |
+
text_gen1=gr.Interface.load("spaces/Yntec/prompt-extend")
|
12 |
#text_gen1=gr.Interface.load("spaces/daspartho/prompt-extend")
|
13 |
#text_gen1=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
14 |
|
15 |
models2=[
|
16 |
+
gr.Interface.load(f"models/{models[0]}",live=False,preprocess=True, postprocess=False),
|
17 |
+
gr.Interface.load(f"models/{models[1]}",live=False,preprocess=True, postprocess=False),
|
18 |
+
gr.Interface.load(f"models/{models[2]}",live=False,preprocess=True, postprocess=False),
|
19 |
+
gr.Interface.load(f"models/{models[3]}",live=False,preprocess=True, postprocess=False),
|
20 |
+
gr.Interface.load(f"models/{models[4]}",live=False,preprocess=True, postprocess=False),
|
21 |
+
gr.Interface.load(f"models/{models[5]}",live=False,preprocess=True, postprocess=False),
|
|
|
22 |
#Because there's a model 0, to know the number of models you add 1 to {models[n]}
|
23 |
]
|
24 |
|