Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,19 @@
|
|
1 |
import gradio as gr
|
2 |
-
import random
|
3 |
-
import os
|
4 |
|
5 |
|
6 |
model1 = gr.load("models/pimpilikipilapi1/NSFW_master")
|
7 |
model2 = gr.load("models/DiegoJR1973/NSFW-TrioHMH-Flux")
|
8 |
model3 = gr.load("models/prashanth970/flux-lora-uncensored")
|
9 |
|
10 |
-
|
11 |
def generate_images(text):
|
12 |
result_image1 = model1(text)
|
13 |
result_image2 = model2(text)
|
14 |
result_image3 = model3(text)
|
15 |
|
|
|
16 |
return result_image1, result_image2, result_image3
|
17 |
|
|
|
18 |
interface = gr.Interface(
|
19 |
fn=generate_images,
|
20 |
inputs=[
|
@@ -25,8 +24,8 @@ interface = gr.Interface(
|
|
25 |
gr.Image(label="Model 2 Output"),
|
26 |
gr.Image(label="Model 3 Output")
|
27 |
],
|
28 |
-
theme="NoCrypt/miku",
|
29 |
description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",
|
30 |
)
|
31 |
|
|
|
32 |
interface.launch()
|
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
|
3 |
|
4 |
model1 = gr.load("models/pimpilikipilapi1/NSFW_master")
|
5 |
model2 = gr.load("models/DiegoJR1973/NSFW-TrioHMH-Flux")
|
6 |
model3 = gr.load("models/prashanth970/flux-lora-uncensored")
|
7 |
|
|
|
8 |
def generate_images(text):
|
9 |
result_image1 = model1(text)
|
10 |
result_image2 = model2(text)
|
11 |
result_image3 = model3(text)
|
12 |
|
13 |
+
|
14 |
return result_image1, result_image2, result_image3
|
15 |
|
16 |
+
|
17 |
interface = gr.Interface(
|
18 |
fn=generate_images,
|
19 |
inputs=[
|
|
|
24 |
gr.Image(label="Model 2 Output"),
|
25 |
gr.Image(label="Model 3 Output")
|
26 |
],
|
|
|
27 |
description="Sorry for the inconvenience. The model is currently running on the CPU, which might affect performance. We appreciate your understanding.",
|
28 |
)
|
29 |
|
30 |
+
|
31 |
interface.launch()
|