Spaces:
Running
Running
charliebaby2023
commited on
Commit
•
53b0019
1
Parent(s):
e5beca8
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
import random
|
3 |
from all_models import models
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
# Function to generate a string with text and a random number
|
@@ -18,7 +27,7 @@ def process_text(input_text):
|
|
18 |
|
19 |
|
20 |
def load_fn(models):
|
21 |
-
|
22 |
global models_load
|
23 |
models_load = {}
|
24 |
|
@@ -67,6 +76,11 @@ def make_me():
|
|
67 |
fn=process_text,
|
68 |
txt_input = gr.Textbox(label = 'Your prompt:', lines=4, value=generate_text_with_random_number() ).style(container=False,min_width=1200)
|
69 |
#"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"
|
|
|
|
|
|
|
|
|
|
|
70 |
gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
71 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
72 |
gen_button.click(lambda s: gr.update(interactive = True), None, stop_button)
|
|
|
1 |
import gradio as gr
|
2 |
import random
|
3 |
from all_models import models
|
4 |
+
from datetime import datetime
|
5 |
+
|
6 |
+
def get_current_time():
|
7 |
+
# Get the current time
|
8 |
+
now = datetime.now()
|
9 |
+
# Format the time as a string
|
10 |
+
current_time = now.strftime("%Y-%m-%d %H:%M:%S")
|
11 |
+
return current_time
|
12 |
+
|
13 |
|
14 |
|
15 |
# Function to generate a string with text and a random number
|
|
|
27 |
|
28 |
|
29 |
def load_fn(models):
|
30 |
+
|
31 |
global models_load
|
32 |
models_load = {}
|
33 |
|
|
|
76 |
fn=process_text,
|
77 |
txt_input = gr.Textbox(label = 'Your prompt:', lines=4, value=generate_text_with_random_number() ).style(container=False,min_width=1200)
|
78 |
#"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"
|
79 |
+
|
80 |
+
time_textbox = gr.Textbox(label="Current Time")
|
81 |
+
refresh_button = gr.Button("Refresh Time")
|
82 |
+
refresh_button.click(fn=get_current_time, outputs=time_textbox)
|
83 |
+
|
84 |
gen_button = gr.Button('Generate up to 6 images in up to 3 minutes total')
|
85 |
stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
86 |
gen_button.click(lambda s: gr.update(interactive = True), None, stop_button)
|