Spaces:
Running
Running
Update app.py
Browse files10 unmodified lines1112131415161744 unmodified lines6263646566676869707110 unmodified linesAPI_TOKEN = os.getenv("HF_READ_TOKEN")headers = {"Authorization": f"Bearer {API_TOKEN}"}timeout = 100models_list = ["AbsoluteReality 1.8.1", "DALL-E 3 XL", "Playground 2", "Openjourney 4", "Lyriel 1.6", "Counterfeit 2.5", "Realistic Vision 5.1", "Incursios 1.6", "Vector Art XL", "epiCRealism", "PixelArt XL", "NewReality XL", "Anything 5.0", "Disney", "CleanLinearMix", "OrangeMixs"]# PLEASE ❤ like ❤ this space. Please like me. I am 12 years old, one of my projects is: https://ai-hub.rf.gd . I live in Russia, I don't know English very well. Therefore, I apologize that there is only Russian here, but I think it will not be difficult to translate all this. (For example, using gpt)44 unmodified linesAPI_URL = "https://api-inference.huggingface.co/models/DoctorDiffusion/doctor-diffusion-s-controllable-vector-art-xl-lora"if model == 'Disney':API_URL = "https://api-inference.huggingface.co/models/goofyai/disney_style_xl"if model == 'CleanLinearMix':API_URL = "https://api-inference.huggingface.co/models/digiplay/CleanLinearMix_nsfw"if model == 'OrangeMixs':API_URL = "https://api-inference.huggingface.co/models/WarriorMama777/OrangeMixs"payload = {"inputs": prompt,10 unmodified lines1112131415161744 unmodified lines6263646566676869707172737410 unmodified linesAPI_TOKEN = os.getenv("HF_READ_TOKEN")headers = {"Authorization": f"Bearer {API_TOKEN}"}timeout = 100models_list = ["AbsoluteReality 1.8.1", "DALL-E 3 XL", "Playground 2", "Openjourney 4", "Lyriel 1.6", "Animagine XL 2.0", "Counterfeit 2.5", "Realistic Vision 5.1", "Incursios 1.6", "Anime Detailer XL", "Vector Art XL", "epiCRealism", "PixelArt XL", "NewReality XL", "Anything 5.0", "Disney", "CleanLinearMix", "OrangeMixs"]# PLEASE ❤ like ❤ this space. Please like me. I am 12 years old, one of my projects is: https://ai-hub.rf.gd . I live in Russia, I don't know English very well. Therefore, I apologize that there is only Russian here, but I think it will not be difficult to translate all this. (For example, using gpt)44 unmodified linesAPI_URL = "https://api-inference.huggingface.co/models/DoctorDiffusion/doctor-diffusion-s-controllable-vector-art-xl-lora"if model == 'Disney':API_URL = "https://api-inference.huggingface.co/models/goofyai/disney_style_xl"prompt = f"Disney стиль. {prompt}"if model == 'CleanLinearMix':API_URL = "https://api-inference.huggingface.co/models/digiplay/CleanLinearMix_nsfw"if model == 'OrangeMixs':API_URL = "https://api-inference.huggingface.co/models/WarriorMama777/OrangeMixs"prompt f"{prompt} | ультра детализация, ультра проработка, ультра качество, идеально."payload = {"inputs": prompt,
app.py+4-1