Update main.py
Browse files
main.py
CHANGED
@@ -107,12 +107,12 @@ def get_prompts(prompt_text):
|
|
107 |
|
108 |
if prompt_text:
|
109 |
# Generate timestamp for different prompts
|
110 |
-
timestamp =
|
111 |
chosen_option = random.choice(options)
|
112 |
-
# Combine prompt text with chosen option
|
113 |
-
|
114 |
-
# Use prompt text with option for generating prompts
|
115 |
-
return text_gen(
|
116 |
else:
|
117 |
return text_gen("")
|
118 |
|
|
|
107 |
|
108 |
if prompt_text:
|
109 |
# Generate timestamp for different prompts
|
110 |
+
timestamp = str(time.time()).replace(".", "")
|
111 |
chosen_option = random.choice(options)
|
112 |
+
# Combine prompt text with chosen option and timestamp
|
113 |
+
prompt_with_option_and_timestamp = f"{prompt_text}, {chosen_option} - {timestamp}"
|
114 |
+
# Use prompt text with option and timestamp for generating prompts
|
115 |
+
return text_gen(prompt_with_option_and_timestamp.replace(timestamp, ""))
|
116 |
else:
|
117 |
return text_gen("")
|
118 |
|