Update main.py
Browse files
main.py
CHANGED
|
@@ -91,6 +91,8 @@ def generate_image(inputs, is_negative, steps, cfg_scale, seed):
|
|
| 91 |
|
| 92 |
|
| 93 |
|
|
|
|
|
|
|
| 94 |
import time
|
| 95 |
|
| 96 |
def get_prompts(prompt_text):
|
|
@@ -104,8 +106,8 @@ def get_prompts(prompt_text):
|
|
| 104 |
]
|
| 105 |
|
| 106 |
if prompt_text:
|
| 107 |
-
#
|
| 108 |
-
|
| 109 |
chosen_option = random.choice(options)
|
| 110 |
return text_gen(f"{prompt_text}, {chosen_option}")
|
| 111 |
else:
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
+
|
| 95 |
+
|
| 96 |
import time
|
| 97 |
|
| 98 |
def get_prompts(prompt_text):
|
|
|
|
| 106 |
]
|
| 107 |
|
| 108 |
if prompt_text:
|
| 109 |
+
# Generate timestamp for different prompts
|
| 110 |
+
timestamp = f"{time.time()}"
|
| 111 |
chosen_option = random.choice(options)
|
| 112 |
return text_gen(f"{prompt_text}, {chosen_option}")
|
| 113 |
else:
|