Spaces:
Running
Running
import gradio as gr | |
import os | |
import sys | |
from pathlib import Path | |
models = [ | |
"John6666/tsubaki-mix-v15-sdxl", | |
"yodayo-ai/kivotos-xl-2.0", | |
"John6666/cranberry-xl-v3-sdxl", | |
"yodayo-ai/holodayo-xl-2.1", | |
"digiplay/NWSJRealMix_SDXL_v1", | |
"John6666/sanaexl-anime-v1-sdxl", | |
"digiplay/Jellymix_XL_v1", | |
"John6666/wai-real-e-v1-sdxl", | |
"playgroundai/playground-v2-1024px-aesthetic", | |
"John6666/epicrealism-xl-v8kiss-sdxl", | |
"dataautogpt3/ProteusV0.4", | |
"John6666/badbro-xl-v5-sdxl", | |
"Bakanayatsu/ponyDiffusion-V6-XL-Turbo-DPO", | |
"John6666/smooth-hassaku-authaku-mix-v1-sdxl", | |
"Lykon/dreamshaper-xl-1-0", | |
"John6666/titania-juggernaut-mix-v1-sdxl", | |
"nerijs/pixel-art-xl", | |
"John6666/defacta-xl-3-v3-sdxl", | |
"Linaqruf/animagine-xl", | |
"John6666/big-lust-v1-sdxl", | |
"dataautogpt3/OpenDalleV1.1", | |
"John6666/urang-diffusion-v11-sdxl", | |
"stabilityai/stable-diffusion-xl-base-1.0", | |
"John6666/hadrian-delice-xl-v26j-sdxl", | |
"John6666/3x3mix-xl-typeh-v1-sdxl", | |
"John6666/kaguya-v1-sdxl", | |
"John6666/zonkey-realism-v5-sdxl", | |
"John6666/wai-cute-v4-sdxl", | |
"John6666/ultimate-realistic-mix-v2-sdxl", | |
"John6666/flower-mix-cherry-xl-v4-sdxl", | |
"John6666/cocoa-mix-xl-v5-25d-sdxl", | |
"John6666/big-asp-v1-sdxl", | |
"John6666/animix-v9-xl-animetvmix-v25-sdxl", | |
"John6666/tsuki-v35-sdxl", | |
"John6666/xlp-caulkinum-animeline-bnd-sdxl", | |
"John6666/xl-caulkinum-animeline-standard-bgm-sdxl", | |
"John6666/xl-caulkinum-animeline-standard-aq-sdxl", | |
"John6666/fluffy-tart-xl-v15-sdxl", | |
"John6666/cutiemagine-v1-sdxl", | |
"John6666/new-tail-multiple-artists-v1-sdxl", | |
"John6666/blafbastic-xl-v1-sdxl", | |
"John6666/grilled-lamprey-sdxl-v12o7n9745-sdxl", | |
"John6666/savant-v201-sdxl", | |
"John6666/speciosa-25d-v12-sdxl", | |
"John6666/flyx3-mix-xl-v2-sdxl", | |
"John6666/3x3mix-xl-typeg-v1-sdxl", | |
"John6666/barry-the-quokka-sdxl-lora", | |
"John6666/4th-tail-autism-v045-sdxl", | |
"John6666/wai-real-cn-v7-sdxl", | |
"John6666/xl-merges-xl012rb2-sdxl", | |
"John6666/speciosa-25d-v11a-sdxl", | |
"John6666/akizone-style-xl-sdxl", | |
"John6666/badbro-xl-v3-sdxl", | |
"John6666/ultimate-realistic-mix-v1-sdxl", | |
"John6666/leekai-sdxl", | |
"John6666/hadrian-delice-xl-v25e-sdxl", | |
"John6666/r-anime-3mil-testmodel-v1-sdxl", | |
"John6666/4gold-mixl-v111-sdxl", | |
"John6666/copycat-bg-v1-sdxl", | |
"John6666/lizmix-version-ex-sdxl", | |
"John6666/asuma-xl-sdxl", | |
"John6666/speciosa-v12-sdxl", | |
"John6666/model-ex-v5-sdxl", | |
"John6666/ohara-pdxl-v1-sdxl", | |
"John6666/forreal-xl-v5-sdxl", | |
"John6666/real-vis-xl-v40-sdxl", | |
"John6666/1style-adjust-of-animaginexl31-v1-sdxl", | |
"John6666/aios-v101foal-v1100foalii-sdxl", | |
"John6666/katayama-mix-xl-v1-sdxl", | |
"John6666/megane-xl-v5-sdxl", | |
"John6666/flyx3-mix-xl-v1-sdxl", | |
"John6666/authaku-mix-v1-sdxl", | |
"John6666/sdxl-anime-illustration-v1-sdxl", | |
"John6666/agenda-mix-pdxl-v15-sdxl", | |
"John6666/toketap-v1-sdxl", | |
"John6666/unreal-tulip-v1-sdxl", | |
"John6666/hadrian-delice-xl-styled-stylea-v12d-sdxl", | |
"John6666/bubble-style-xl-v1-sdxl", | |
"John6666/crystal-clear-slime-nsf-v1-sdxl", | |
"John6666/bubble-xl-v1-sdxl", | |
"John6666/cocoa-mix-xl-v4-sdxl", | |
"John6666/wai-c-v3-sdxl", | |
"John6666/iniverse-mix-xl-sfwnsfw-guofen-v15-sdxl", | |
"John6666/hadrian-delice-xl-styled-stylea-v11h-sdxl", | |
"John6666/flower-mix-moon-xl-v1-sdxl", | |
"John6666/eclipse-xl-v13test-sdxl", | |
"John6666/ost-ander-mix-v1-sdxl", | |
"John6666/sweet-mix-xl-v1-sdxl", | |
"John6666/xl-merges-xl011-sdxl", | |
"John6666/digital-af-xlp-v1-sdxl", | |
"John6666/perfect-nai-v1-sdxl", | |
"John6666/wai-real-mix-v8-sdxl", | |
"John6666/schizo-merges-arti-heart-neta-inception-sdxl", | |
"John6666/cocoa-mix-xl-v3-sdxl", | |
"John6666/3x3x3mixxl-v2-sdxl", | |
"John6666/anime-screenshot-xl-v1-sdxl", | |
"John6666/flower-mix-cherry-xl-v3-sdxl", | |
"John6666/boring-cake-v1-sdxl", | |
"John6666/schizo-merges-arti-heart-neta-v2-sdxl", | |
"John6666/hadrian-delice-xl-styled-stylea-v10d-sdxl", | |
"John6666/dissonance-v11-sdxl", | |
"John6666/fpl005-sdxl", | |
"John6666/bamboo-shoot-mix-v1-sdxl", | |
"John6666/3d-rendering-style-beta2-sdxl", | |
"John6666/wai-doll-cn-v2-sdxl", | |
"John6666/hamef-kawaii-mix-type24normal-warm-sdxl", | |
"John6666/mala-smooth-v1-sdxl", | |
"John6666/fluffy-tart-xl-v14-sdxl", | |
"John6666/hamef-kawaii-mix-type24light-warm-sdxl", | |
"John6666/ras-real-anime-screencap-v1-sdxl", | |
"John6666/anima-pencil-xl-v5-sdxl", | |
"John6666/randomizer89-pdxl-merge-v3-sdxl", | |
"John6666/cocoa-mix-xl-v2-sdxl", | |
"John6666/grilled-lamprey-sdxl-v10o4n3-sdxl", | |
"John6666/white-unicorn-v2-sdxl", | |
"John6666/pys-gallery-anime-v24-sdxl", | |
"John6666/3x3mix-xl-typef-v1-sdxl", | |
"John6666/grilled-lamprey-sdxl-v10o1n9752-sdxl", | |
"John6666/blue-pencil-xl-v7-sdxl", | |
"John6666/sympony-v2-fuga-sdxl", | |
"John6666/cute-core-v1-sdxl", | |
"John6666/cocoa-mix-xl-v1-sdxl", | |
"John6666/niji-style-xl-v21-sdxl", | |
"John6666/animix-v9-xl-animetvmix-2nd-sdxl", | |
"John6666/pegasusxx-v40-twilightsky-sdxl", | |
"John6666/pegana-merge-v2-sdxl", | |
"John6666/flower-mix-cherry-xl-v2-sdxl", | |
"John6666/getsujitsu-v1-sdxl", | |
"John6666/lyuyang-mix-vp-v198-sdxl", | |
"John6666/tsuki-v2-sdxl", | |
"John6666/bunny-mint-v3-ns-sdxl", | |
"John6666/wai-real-cn-v6-sdxl", | |
"John6666/xl-merges-xl010-sdxl", | |
"John6666/bunny-mint-sdxl", | |
"John6666/wai-cute-v3-sdxl", | |
"John6666/3x3mix-xl-typea-v2-sdxl", | |
"John6666/hamef-kawaii-mix-type2light-sdxl", | |
"John6666/aniease-v24-sdxl", | |
"John6666/wai-real-cn-v5-sdxl", | |
"John6666/wai-real-cn-v4-sdxl", | |
"John6666/rae-diffusion-xl-v1-sdxl", | |
"John6666/sympony-v1-prelude-sdxl", | |
"John6666/himawari-mix-xl-v13-sdxl", | |
"John6666/3x3mix-xl-typee-v1-sdxl", | |
"John6666/r-anime-220k-v1-sdxl", | |
"John6666/knk-soft-shading-v1-sdxl", | |
"John6666/astolfo-mix-xl-tgmd-sdxl", | |
"John6666/hadrian-delice-xl-v20l-sdxl", | |
"John6666/accretion-disc-xl-v1-sdxl", | |
"John6666/confusion-xl-v3-sdxl", | |
"John6666/luminastra-xl-v2-sdxl", | |
"John6666/9527-detail-realistic-xl-v55mix-sdxl", | |
"John6666/nero-mix-v1-sdxl", | |
"John6666/runbullxl-v8-sdxl", | |
"John6666/deng-pvc-xl-mix2-v1-sdxl", | |
"John6666/3x3mix-xl-typed-v1-sdxl", | |
"John6666/kosa-v2-sdxl", | |
"John6666/pegana-merge-v1-sdxl", | |
"John6666/kohaku-xl-epsilon-rev2-sdxl", | |
"John6666/99mix-v1-sdxl", | |
"John6666/pegasusxx-v383-sdxl", | |
"John6666/sino-station-xl-manhua-v8-sdxl", | |
"John6666/pegasusxx-v35-sdxl", | |
"John6666/eclipse-xl-v1-sdxl", | |
"John6666/kome-anime-coloring-chibi-style-v1-sdxl", | |
"John6666/base-anime-style-pony-v3-sdxl", | |
"John6666/copycat-v2-sdxl", | |
"John6666/asyncs-mix-xl-v31-sdxl", | |
"John6666/adamah-mix-xl-v15-sdxl", | |
"John6666/cosmix-v2-sdxl", | |
"John6666/super-robot-diffusion-rise-v1-sdxl", | |
"John6666/animix-v9-xl-sdxl", | |
"John6666/pthno2-v1-sdxl", | |
"John6666/xl-caulkinum-realline-sj-sdxl", | |
"John6666/wai-cute-v2-sdxl", | |
"John6666/comradeship-xl-v9-sdxl", | |
"John6666/heart-of-apple-xl-v3-sdxl", | |
"John6666/tri-fusion-v1e-sdxl", | |
"John6666/himawari-mix-xl-v6-sdxl", | |
"John6666/after-real-xl-beta2-sdxl", | |
"John6666/cherry-picker-xl-v3-sdxl", | |
"John6666/aniease-v23-sdxl", | |
"John6666/any-orange-mix-xl-v1-sdxl", | |
"John6666/white-unicorn-another-sdxl", | |
"John6666/fuduki-mix-v2-sdxl", | |
"John6666/anime-illust-diffusion-v8-sdxl", | |
"John6666/neta-art-xl-v1dpo-sdxl", | |
"John6666/raemu-xl-v35l-sdxl", | |
"John6666/aing-diffusion-xl-v13-sdxl", | |
"John6666/stuffy-mix-v1-sdxl", | |
"John6666/chacol-omega-mix-v11a-sdxl", | |
"John6666/epona-mix-v3-sdxl", | |
"John6666/baxl-v3-sdxl", | |
"John6666/cute-core-v3-sdxl", | |
"John6666/yamers-anime-sa-sdxl", | |
"John6666/3x3x3mixxl-v1-sdxl", | |
"John6666/rumblexl-v13-sdxl", | |
"John6666/anime-bulldozer-v2-sdxl", | |
"John6666/anima-pencil-sdxl", | |
"John6666/colorful-xl-v7-sdxl", | |
] | |
current_model = models[0] | |
text_gen1=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion") | |
models2=[ | |
gr.Interface.load(f"models/{models[0]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[1]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[2]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[3]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[4]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[5]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[6]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[7]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[8]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[9]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[10]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[11]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[12]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[13]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[14]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[15]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[16]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[17]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[18]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[19]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[20]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[21]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[22]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[23]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[24]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[25]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[26]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[27]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[28]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[29]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[30]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[31]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[32]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[33]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[34]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[35]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[36]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[37]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[38]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[39]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[40]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[41]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[42]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[43]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[44]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[45]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[46]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[47]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[48]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[49]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[50]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[51]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[52]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[53]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[54]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[55]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[56]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[57]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[58]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[59]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[60]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[61]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[62]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[63]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[64]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[65]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[66]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[67]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[68]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[69]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[70]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[71]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[72]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[73]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[74]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[75]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[76]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[77]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[78]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[79]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[80]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[81]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[82]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[83]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[84]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[85]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[86]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[87]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[88]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[89]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[90]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[91]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[92]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[93]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[94]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[95]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[96]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[97]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[98]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[99]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[100]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[101]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[102]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[103]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[104]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[105]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[106]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[107]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[108]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[109]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[110]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[111]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[112]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[113]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[114]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[115]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[116]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[117]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[118]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[119]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[120]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[121]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[122]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[123]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[124]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[125]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[126]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[127]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[128]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[129]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[130]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[131]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[132]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[133]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[134]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[135]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[136]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[137]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[138]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[139]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[140]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[141]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[142]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[143]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[144]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[145]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[146]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[147]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[148]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[149]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[150]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[151]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[152]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[153]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[154]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[155]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[156]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[157]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[158]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[159]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[160]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[161]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[162]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[163]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[164]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[165]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[166]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[167]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[168]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[169]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[170]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[171]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[172]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[173]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[174]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[175]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[176]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[177]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[178]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[179]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[180]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[181]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[182]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[183]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[184]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[185]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[186]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[187]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[188]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[189]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[190]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[191]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[192]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[193]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[194]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[195]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[196]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[197]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[198]}",live=True,preprocess=False), | |
gr.Interface.load(f"models/{models[199]}",live=True,preprocess=False), | |
] | |
def text_it1(inputs,text_gen1=text_gen1): | |
go_t1=text_gen1(inputs) | |
return(go_t1) | |
def set_model(current_model): | |
current_model = models[current_model] | |
return gr.update(label=(f"{current_model}")) | |
def send_it1(inputs, model_choice): | |
proc1=models2[model_choice] | |
output1=proc1(inputs) | |
return(output1) | |
css="""""" | |
with gr.Blocks(css=css) as myface: | |
gr.HTML(""" | |
<div style="text-align: center; max-width: 1200px; margin: 0 auto;"> | |
<div> | |
<style> | |
h1 { | |
font-size: 6em; | |
color: #ffffff; | |
margin-top: 30px; | |
margin-bottom: 30px; | |
text-shadow: 3px 3px 0 rgba(0, 0, 0, 1) !important; | |
} | |
h4 { | |
color: #ffaa66; !important; | |
} | |
h3 { | |
color: #ffffff; !important; | |
} | |
.gradio-container { | |
background-image: linear-gradient(#8150df, #6d43e4, #000000) !important; | |
color: #ffaa66 !important; | |
font-family: 'IBM Plex Sans', sans-serif !important; | |
} | |
.text-gray-500 { | |
color: #ffaa66 !important; | |
} | |
.gr-box { | |
color: #000000 !important; | |
background-image: linear-gradient(#563595, #6d43e4, #8150df) !important; | |
border-top-color: #000000 !important; | |
border-right-color: #ffffff !important; | |
border-bottom-color: #ffffff !important; | |
border-left-color: #000000 !important; | |
} | |
</style> | |
<body> | |
<div class="center"><h1>ToyWorld XL</h1> | |
</div> | |
</body> | |
</div> | |
<p style="margin-bottom: 10px; color: #ffaa66;"> | |
<h3>Top 200 SDXL models for your enjoyment!</h3></p> | |
<p style="margin-bottom: 10px; font-size: 98%"> | |
<br><h4><a href="https://huggingface.co/spaces/Yntec/PrintingPress"><u><b><p>Try out more than 800 Stable Diffusion models at the Printing Press by clicking here!</p></b></u></a></h4></p> | |
</div> | |
""") | |
with gr.Row(): | |
with gr.Column(scale=100): | |
#Model selection dropdown | |
model_name1 = gr.Dropdown(label="Select Model", choices=[m for m in models], type="index", value=current_model, interactive=True) | |
with gr.Row(): | |
with gr.Column(scale=100): | |
magic1=gr.Textbox(label="Your Prompt", lines=4) | |
#align-items: center !important; | |
#appearance: none !important; | |
#border-style: none !important; | |
#box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px,rgba(0, 0, 0, .14) 0 6px 10px 0,rgba(0, 0, 0, .12) 0 1px 18px 0 !important; | |
#box-sizing: border-box !important; | |
#cursor: pointer !important; | |
#display: inline-flex !important; | |
#fill: currentcolor !important; | |
#font-family: "Google Sans",Roboto,Arial,sans-serif !important; | |
#font-size: 14px !important; | |
#font-weight: 500 !important; | |
#height: 48px !important; | |
#justify-content: center !important; | |
#letter-spacing: .25px !important; | |
#line-height: normal !important; | |
#max-width: 100% !important; | |
#overflow: visible !important; | |
#padding: 2px 24px !important; | |
#position: relative !important; | |
#text-align: center !important; | |
#text-transform: none !important; | |
#transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1),opacity 15ms linear 30ms,transform 270ms cubic-bezier(0, 0, .2, 1) 0ms !important; | |
#user-select: none !important; | |
#-webkit-user-select: none !important; | |
#touch-action: manipulation !important; | |
#width: auto !important; | |
#will-change: transform,opacity !important; | |
#z-index: 0 !important; | |
gr.HTML("""<style> .gr-button { | |
color: white !important; | |
text-shadow: 1px 1px 0 rgba(0, 0, 0, 1) !important; | |
background-image: linear-gradient(#ff9e0c, #ffd31e) !important; | |
border-radius: 24px !important; | |
border: solid 1px !important; | |
border-top-color: #ffffff !important; | |
border-right-color: #000000 !important; | |
border-bottom-color: #000000 !important; | |
border-left-color: #ffffff !important; | |
padding: 6px 30px; | |
} | |
.gr-button:active { | |
font-size: 98% !important; | |
text-shadow: 0px 0px 0 rgba(0, 0, 0, 1) !important; | |
border-top-color: #000000 !important; | |
border-right-color: #ffffff !important; | |
border-bottom-color: #ffffff !important; | |
border-left-color: #000000 !important; | |
} | |
</style>""") | |
run=gr.Button("Generate Image") | |
with gr.Row(): | |
with gr.Column(style="width=800px"): | |
output1=gr.Image(label=(f"{current_model}")) | |
with gr.Row(): | |
with gr.Column(scale=50): | |
input_text=gr.Textbox(label="Use this box to extend an idea automagically, by typing some words and clicking Extend Idea",lines=2) | |
use_short=gr.Button("Use Short Prompt") | |
see_prompts=gr.Button("Extend Idea") | |
def short_prompt(inputs): | |
return(inputs) | |
model_name1.change(set_model,inputs=model_name1,outputs=[output1]) | |
run.click(send_it1, inputs=[magic1, model_name1], outputs=[output1]) | |
use_short.click(short_prompt,inputs=[input_text],outputs=magic1) | |
see_prompts.click(text_it1,inputs=[input_text],outputs=magic1) | |
myface.queue(concurrency_count=200) | |
myface.launch(inline=True, show_api=False, max_threads=400) |