import gradio as gr import os import sys from pathlib import Path from all_models import models current_model = models[0] #text_gen1=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion") text_gen1=gr.Interface.load("spaces/daspartho/prompt-extend") #text_gen1=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion_link") 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), gr.Interface.load(f"models/{models[200]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[201]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[202]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[203]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[204]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[205]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[206]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[207]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[208]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[209]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[210]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[211]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[212]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[213]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[214]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[215]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[216]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[217]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[218]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[219]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[220]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[221]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[222]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[223]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[224]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[225]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[226]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[227]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[228]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[229]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[230]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[231]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[232]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[233]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[234]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[235]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[236]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[237]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[238]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[239]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[240]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[241]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[242]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[243]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[244]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[245]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[246]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[247]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[248]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[249]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[250]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[251]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[252]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[253]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[254]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[255]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[256]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[257]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[258]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[259]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[260]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[261]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[262]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[263]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[264]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[265]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[266]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[267]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[268]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[269]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[270]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[271]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[272]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[273]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[274]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[275]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[276]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[277]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[278]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[279]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[280]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[281]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[282]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[283]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[284]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[285]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[286]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[287]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[288]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[289]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[290]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[291]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[292]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[293]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[294]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[295]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[296]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[297]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[298]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[299]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[300]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[301]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[302]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[303]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[304]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[305]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[306]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[307]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[308]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[309]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[310]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[311]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[312]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[313]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[314]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[315]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[316]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[317]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[318]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[319]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[320]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[321]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[322]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[323]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[324]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[325]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[326]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[327]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[328]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[329]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[330]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[331]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[332]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[333]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[334]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[335]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[336]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[337]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[338]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[339]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[340]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[341]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[342]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[343]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[344]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[345]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[346]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[347]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[348]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[349]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[350]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[351]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[352]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[353]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[354]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[355]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[356]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[357]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[358]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[359]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[360]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[361]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[362]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[363]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[364]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[365]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[366]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[367]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[368]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[369]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[370]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[371]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[372]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[373]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[374]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[375]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[376]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[377]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[378]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[379]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[380]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[381]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[382]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[383]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[384]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[385]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[386]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[387]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[388]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[389]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[390]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[391]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[392]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[393]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[394]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[395]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[396]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[397]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[398]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[399]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[400]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[401]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[402]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[403]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[404]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[405]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[406]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[407]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[408]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[409]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[410]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[411]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[412]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[413]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[414]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[415]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[416]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[417]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[418]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[419]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[420]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[421]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[422]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[423]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[424]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[425]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[426]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[427]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[428]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[429]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[430]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[431]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[432]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[433]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[434]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[435]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[436]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[437]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[438]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[439]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[440]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[441]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[442]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[443]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[444]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[445]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[446]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[447]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[448]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[449]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[450]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[451]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[452]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[453]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[454]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[455]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[456]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[457]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[458]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[459]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[460]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[461]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[462]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[463]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[464]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[465]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[466]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[467]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[469]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[470]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[471]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[472]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[473]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[474]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[475]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[476]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[477]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[478]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[479]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[480]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[481]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[482]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[483]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[484]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[485]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[486]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[487]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[488]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[489]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[490]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[491]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[492]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[493]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[494]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[495]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[496]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[497]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[498]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[499]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[500]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[501]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[502]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[503]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[504]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[505]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[506]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[507]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[508]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[509]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[510]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[511]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[512]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[513]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[514]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[515]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[516]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[517]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[518]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[519]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[520]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[521]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[522]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[523]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[524]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[525]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[526]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[527]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[528]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[529]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[530]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[531]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[532]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[533]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[534]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[535]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[536]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[537]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[538]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[539]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[540]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[541]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[542]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[543]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[544]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[545]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[546]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[547]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[548]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[549]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[550]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[551]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[552]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[553]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[554]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[555]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[556]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[557]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[558]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[559]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[560]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[561]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[562]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[563]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[564]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[565]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[566]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[567]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[568]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[569]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[570]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[571]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[572]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[573]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[574]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[575]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[576]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[577]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[578]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[579]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[580]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[581]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[582]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[583]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[584]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[585]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[586]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[587]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[588]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[589]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[590]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[591]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[592]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[593]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[594]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[595]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[596]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[597]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[598]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[599]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[600]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[601]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[602]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[603]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[604]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[605]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[606]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[607]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[608]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[609]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[610]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[611]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[612]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[613]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[614]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[615]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[616]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[617]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[618]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[619]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[620]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[621]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[622]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[623]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[624]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[625]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[626]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[627]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[628]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[629]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[630]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[631]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[632]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[633]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[634]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[635]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[636]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[637]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[638]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[639]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[640]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[641]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[642]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[643]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[644]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[645]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[646]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[647]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[648]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[649]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[650]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[651]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[652]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[653]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[654]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[655]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[656]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[657]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[656]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[657]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[658]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[659]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[660]}",live=True,preprocess=False), gr.Interface.load(f"models/{models[661]}",live=True,preprocess=False), #Because there's a model 0, to know the number of models you add 1 to {models[n]} ] 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): #negative_prompt, proc1=models2[model_choice] output1=proc1(inputs) #negative_prompt=negative_prompt return(output1) css="""""" with gr.Blocks(css=css) as myface: gr.HTML("""
""") 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) #Positive #with gr.Column(scale=100): #negative_prompt=gr.Textbox(label="Negative Prompt", lines=1) gr.HTML("""""") 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) see_prompts=gr.Button("Extend Idea -> overwrite the contents of the `Your PromptĀ“ box above") use_short=gr.Button("Copy the contents of this box to the `Your PromptĀ“ box above") 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)