Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,8 @@ import gradio as gr
|
|
| 2 |
from random import randint
|
| 3 |
from all_models import models
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
# Function to generate a string with text and a random number
|
| 8 |
def generate_text_with_random_number():
|
|
@@ -18,7 +19,7 @@ def process_text(input_text):
|
|
| 18 |
|
| 19 |
|
| 20 |
def load_fn(models):
|
| 21 |
-
|
| 22 |
global models_load
|
| 23 |
models_load = {}
|
| 24 |
|
|
@@ -63,7 +64,7 @@ def gen_fn(model_str, prompt):
|
|
| 63 |
with gr.Blocks() as demo:
|
| 64 |
with gr.Tab('The Dream'):
|
| 65 |
fn=process_text,
|
| 66 |
-
txt_input = gr.Textbox(label = 'Your prompt:', lines=4, value=
|
| 67 |
#"nude femboy sissy with small penis, bound anal sex orgy party, perfect penis, oral sex, threesum, head between thighs, glans inside mouth, cuming from glans"
|
| 68 |
gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
| 69 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
|
|
|
| 2 |
from random import randint
|
| 3 |
from all_models import models
|
| 4 |
|
| 5 |
+
random_number = 0
|
| 6 |
+
ki=0
|
| 7 |
|
| 8 |
# Function to generate a string with text and a random number
|
| 9 |
def generate_text_with_random_number():
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
def load_fn(models):
|
| 22 |
+
ki=generate_text_with_random_number()
|
| 23 |
global models_load
|
| 24 |
models_load = {}
|
| 25 |
|
|
|
|
| 64 |
with gr.Blocks() as demo:
|
| 65 |
with gr.Tab('The Dream'):
|
| 66 |
fn=process_text,
|
| 67 |
+
txt_input = gr.Textbox(label = 'Your prompt:', lines=4, value=ki ).style(container=False,min_width=1200)
|
| 68 |
#"nude femboy sissy with small penis, bound anal sex orgy party, perfect penis, oral sex, threesum, head between thighs, glans inside mouth, cuming from glans"
|
| 69 |
gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
| 70 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|