Spaces:
Running
Running
Update app.py (#2)
Browse files- Update app.py (55198ed6c6d67ed87f5ffded1e2c5f41152ae47c)
Co-authored-by: John Smith <[email protected]>
app.py
CHANGED
@@ -945,7 +945,7 @@ text_gen1=gr.Interface.load("spaces/Yntec/prompt-extend")
|
|
945 |
#text_gen1=gr.Interface.load("spaces/daspartho/prompt-extend")
|
946 |
#text_gen1=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
947 |
|
948 |
-
models2=[
|
949 |
gr.Interface.load(f"models/{models[0]}",live=False, preprocess=True, postprocess=False),
|
950 |
gr.Interface.load(f"models/{models[1]}",live=False, preprocess=True, postprocess=False),
|
951 |
gr.Interface.load(f"models/{models[2]}",live=False, preprocess=True, postprocess=False),
|
@@ -1914,11 +1914,13 @@ models2=[
|
|
1914 |
gr.Interface.load(f"models/{models[895]}",live=False, preprocess=True, postprocess=False),
|
1915 |
gr.Interface.load(f"models/{models[896]}",live=False, preprocess=True, postprocess=False),
|
1916 |
gr.Interface.load(f"models/{models[897]}",live=False, preprocess=True, postprocess=False),
|
1917 |
-
gr.Interface.load(f"models/{models[898]}",live=False, preprocess=True, postprocess=False),
|
1918 |
|
1919 |
#Because there's a model 0, to know the number of models you add 1 to {models[n]}
|
1920 |
-
]
|
1921 |
-
|
|
|
|
|
1922 |
def text_it1(inputs,text_gen1=text_gen1):
|
1923 |
go_t1=text_gen1(inputs)
|
1924 |
return(go_t1)
|
|
|
945 |
#text_gen1=gr.Interface.load("spaces/daspartho/prompt-extend")
|
946 |
#text_gen1=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link")
|
947 |
|
948 |
+
"""models2=[
|
949 |
gr.Interface.load(f"models/{models[0]}",live=False, preprocess=True, postprocess=False),
|
950 |
gr.Interface.load(f"models/{models[1]}",live=False, preprocess=True, postprocess=False),
|
951 |
gr.Interface.load(f"models/{models[2]}",live=False, preprocess=True, postprocess=False),
|
|
|
1914 |
gr.Interface.load(f"models/{models[895]}",live=False, preprocess=True, postprocess=False),
|
1915 |
gr.Interface.load(f"models/{models[896]}",live=False, preprocess=True, postprocess=False),
|
1916 |
gr.Interface.load(f"models/{models[897]}",live=False, preprocess=True, postprocess=False),
|
1917 |
+
#gr.Interface.load(f"models/{models[898]}",live=False, preprocess=True, postprocess=False),
|
1918 |
|
1919 |
#Because there's a model 0, to know the number of models you add 1 to {models[n]}
|
1920 |
+
]"""
|
1921 |
+
|
1922 |
+
models2 = [gr.Interface.load(f"models/{m}",live=False, preprocess=True, postprocess=False) for m in models]
|
1923 |
+
|
1924 |
def text_it1(inputs,text_gen1=text_gen1):
|
1925 |
go_t1=text_gen1(inputs)
|
1926 |
return(go_t1)
|