File size: 929 Bytes
17e58be 3aec09f 77efc8c 625e1fa 3aec09f 625e1fa 0862982 3aec09f 0862982 0389d06 3aec09f 0389d06 3aec09f 0389d06 945386e 3aec09f 945386e 1e98fc8 3aec09f 0389d06 146f57d 1e98fc8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import gradio as gr
import random
import os
model1 = gr.load("models/pimpilikipilapi1/NSFW_master")
model2 = gr.load("models/DiegoJR1973/NSFW-TrioHMH-Flux")
model3 = gr.load("models/prashanth970/flux-lora-uncensored")
def generate_images(text):
result_image1 = model1(text)
result_image2 = model2(text)
result_image3 = model3(text)
return result_image1, result_image2, result_image3
interface = gr.Interface(
fn=generate_images,
inputs=[
gr.Textbox(label="Type here your imagination:", placeholder="Type or click an example..."),
],
outputs=[
gr.Image(label="Model 1 Output"),
gr.Image(label="Model 2 Output"),
gr.Image(label="Model 3 Output")
],
theme="NoCrypt/miku",
description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",
)
interface.launch() |